Hi again,

When you have an 'obeserver' setup as follows:

$('myForm').observe('submit', validateForm);

If a user submits the form the 'validateForm' function is called and
is automagically passed the 'event' to work with. This is fantastic!

But is there a way to pass another argument to the function? Something
like:

$('myForm').observe('submit', validateForm, param1, param2);

etc?

Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to