Hi,
I have a simple page that fire an event but it doesn't work.. No
errors on page.

<html><head>

<title>Javascript Events</title>
<script src="js/prototype.js"></script>

<script>
  function firePrototypeEvent(element,event){

    element.fire(event);

  }
</script>

<input id="example5" value="example 5" size="15" type="text">
<input onclick="firePrototypeEvent(document.getElementById
('example5'),'event_2');" value="fire event_2" type="button"><br>
<script>

  var obj2 = document.getElementById("example5");
  Event.observe(obj2,'event_2',function(){alert('i was clicked');});
//  document.observe("event_2", function(event) {       alert('i was clicked
2');});

</script>



</body></html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to