Element#fire will not dispatch "native" events, as cross browser
compatibility for that is crap. The best you can do is to fire a
custom event on click, and trigger the same event with fire.

element.observe("click", function() { this.fire("dom:clicked") });
element.observe("dom:clicked", function(event) {
  // implement your click event logic here
});

element.fire("dom:clicked");

Best,
-Nicolas

On Jan 10, 2008 9:17 PM, Michael <[EMAIL PROTECTED]> wrote:
>
> I'm trying to fire the click event of my parent node.  This is for
> asp.net backwards compability.   Right now I have
>
>       if(parentcontrol.fire)
>         {
>
>
>             parentcontrol.fire('click');
>             // __doPostBack(convertID(parentcontrol.id));
>         }
>
> This will not dispatch and click my parent.
> >
>

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

Reply via email to