Can we at least get it to fire events wired in with
element.observe...Can we at least get it to fire events wired in with
element.observe...
So element.observe('click',function(){ alert('Hello world'); });
would be fired by element.fire('click');
If you dont use element.observe then you are on your own but if you
used element.observe you are good to go.
PS.. Why cant I just reply to these messages in gmail... It keeps
saying its blocked.
On Jan 11, 11:09 am, Tobie Langel <[EMAIL PROTECTED]> wrote:
> On Jan 11, 4:37 pm, Michael <[EMAIL PROTECTED]> wrote:
>
> > I think I am going to start extending "fire" to fire dom events. It
> > doesnt make sense to me that prototype abstracts the dom in every form
> > except firing events. If element.observe can wire dom events then
> > element.fire should fire them. The only thing I can think of that
> > this isnt done is that no one has done it yet.
>
> Hi,
>
> It's definitely a wanted feature... unfortunately, it's a mess to get
> right, as the implementations differ widely across browsers.
>
> From the preliminary research I've done, firing mouse events is
> possible in all browsers (but a pain in Safari), I'm totally unsure
> about keyboard events though.
>
> Best,
>
> Tobie
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---