I use Event.observe to catch a click event, however, the element in
question is initially hidden when the page loads (and all my
Event.observe''s are called immediately after the page loads). So
Event.observe doesn''t seem to work after the element does eventually
become visible (via some other triggers). I could call Event.observe
when the element becomes visible, but it complicates the code a bit.
Is there anyway to get around this? I''ve read around about event
delegation, but am unclear if this will work. Any ideas?
Thanks,
mark
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---