On Wed, Jul 9, 2008 at 10:50 AM, onitsuka <[EMAIL PROTECTED]> wrote:
>
> That's true, but even if it had bubbled that would not have solved my
> problem :-)

It would absolutely solve your problem! In your original post, you
said, "I would like to register a method which will be called when the
onfocus events is triggered on any INPUT without having to register it
explicitly on all INPUTs". That is a perfect example of what event
delegation can do.

Unfortunately, the fact that onfocus doesn't bubble is what renders it
useless for your situation. If you were capturing clicks or
mouseovers, though, you'd be set.

:Dan

--~--~---------~--~----~------------~-------~--~----~
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