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 ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs