I'm trying to tie in all of a website's event handlers in HTML to Prototype. I.e.
<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. I believe what I'm looking for is Event.extend(), but the documentation on it is minimal and it tells of extending an event registered in other ways. But how exactly do I retrieve the onclick event of a link as it is defined in HTML? Basically, I'm trying to write a hack (for now, I'll truly fix this stuff later on) that will allow me to take all of the onclick elements on a page and get them into Prototype's event handling system. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
