What about this script. I've used it in one project and it works as it should.
http://github.com/kangax/protolicious/blob/e5091a8051d57d62ae54bb906b16435fa638d75d/event.simulate.js - Marko On Apr 7, 11:54 am, "T.J. Crowder" <[email protected]> wrote: > Hi, > > > It worked perfectly but can't we achieve the same thing by calling > > onchange. > > I don't think so. The onchange attribute of elements is the DOM0 > style of event handler assignment, where there can only be one > listener for the event. The mechanism provided by Element#observe > uses the more modern mechanisms browsers now supply (albeit in > different forms) that allow multiple handlers on the same event for > the same element. If you call the onchange attribute of the element, > the result will probably be implementation-dependant, but I suspect it > will only call the DOM0 handler in most implementations. > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Apr 7, 10:02 am, codef0rmer <[email protected]> wrote: > > > Thanks T.J., > > > It worked perfectly but can't we achieve the same thing by calling > > onchange. > > > -- > > With Regards > > Amit Gharathttp://amitgharat.wordpress.com/ > > > Not everyone can become a great programmer. > > But a great programmer can come from anyone. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
