[Prototype-core] Re: Triggering event / calling an element's event handlers
Ya i was just gonna mention the http://groups.google.com/group/rubyonrails-spinoffs list. Try $('foo').click(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Triggering event / calling an element's event handlers
So sorry again, I just realised this is the wrong list for support questions.Will repost in the user mailing list. On 2 Apr., 15:03, sam <[EMAIL PROTECTED]> wrote: > Sorry, copy-paste-of-death, the correct example code would be: > > Assume I have a link 'foo': > > Event.observe('foo', 'click', doSomething); > Event.observe('foo', 'click', doSomethingElse); > > And I have a link 'bar': > > Event.observe('bar', 'click', function(e) { > // *** Just how can I call all of 'foo's click handlers here?} > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---
[Prototype-core] Re: Triggering event / calling an element's event handlers
Sorry, copy-paste-of-death, the correct example code would be: Assume I have a link 'foo': Event.observe('foo', 'click', doSomething); Event.observe('foo', 'click', doSomethingElse); And I have a link 'bar': Event.observe('bar', 'click', function(e) { // *** Just how can I call all of 'foo's click handlers here? } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~--~~~~--~~--~--~---