you are in: codestackercodes [RSS]passing extra parameters to prototype observer handlers

passing extra parameters to prototype observer handlers Delicious Email

a simple listener: $(‘myForm’).observe(‘submit’, validateMyForm) dont support extra params in the function (in the case, validateMyForm. the solution:

show/hide lines
   1  $('myForm').observe('submit', function(event) {  
   2      validateMyForm(event, param1, param2);  
   3  }); 
created by leozera — 05 August 2008 — get a short url — tags: javascript prototype embed

Comments



We dont send spam :)

If checked, it's highlights your comment
simple_captcha.jpg
Are you a human? Type the code from the image