On Monday 06 February 2006 13:05, Yehuda Katz wrote: > I need a way to pass parameters to an event handler function other than > just the e. > I'm declaring the handler as such: Event.observe('regmenu', 'mouseover', > togglein, false);
What you're looking for is a closure :) Event.observe('regmenu', 'mouseover', function(e) { togglein(e, param1, param2, param3, etc); }, false); where 'e' is the event object for the particular triggered event. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob.
pgpJ6yCc3sVrz.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs