On Jan 1, 3:16 pm, RobG <[EMAIL PROTECTED]> wrote:
> On Jan 1, 5:30 am, Ken Snyder <[EMAIL PROTECTED]> wrote:
>
> > RFLudwick wrote:
> > > I'm trying to tie in all of a website's event handlers in HTML to
> > > Prototype. I.e.
>
> Why?  What are you trying to achieve?  What is it in Prototype.js'
> handler scheme that you want to use?
>
> > > <a onclick="..."></a>
>
> > > I can't easily strip out these event handlers from the HTML and put
> > > them in Javascript, but I would like to get them into Prototype's
> > > event handling system so they can unregister for IE, etc.
>
> It's pretty simple to "unregister" an inline handler, simply set the
> attribute value to null, e.g.:
>
>   element.onclick = null;

Forgot to add that if you re-attach the handlers dynamically as
anonymous functions, you can't easily remove them.


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