At the moment, my code observes an element for a ''click''
event. This
then triggers a function that fires a custom event on another object.
E.g.:
$(element).observe(''click'', function(e) { $
(other_element).fire(''custom:event'', e) });
This works fine, but I would like to be able to:
$(element).observe(''keypress'', function(e) { $
(other_element).fire(''click'', e) });
Is there any way of firing standard DOM events instead of only firing
custom events?
Thanks,
Edd
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---