Fire events with Prototype

October 9th, 2008 § 0

It’s not possible to fire the default events with Prototype 1.6. Only custom events are supported.

$(’mybutton’).observe(’click’,function(){…});
$(’mybutton’).fire(’click’); will not work

$(’myinput’).observe(’input:changed’,function(){….});
$(’myinput’).fire(’input:changed’); does work

Related posts:

  1. Prototype: submit multiple select with ajax call
  2. __autoload function

Tagged: ,

§ Leave a Reply

What's this?

You are currently reading Fire events with Prototype at westworld: a webmasters best friend.

meta