[nycphp-talk] Finding event listeners?
Jon Baer
jonbaer at jonbaer.com
Tue Sep 4 20:28:35 EDT 2007
Actually a pretty good question ... I was under assumption that you
could call Event.observers in Prototype and get back an array of
element and handlers but after glimpsing through the API was not the
case. In fact since it's not a DOM-level call it seems that it would
be pretty API independent. It seems that they even removed that and
implemented a stacked cache a while back ...
http://dev.rubyonrails.org/browser/spinoffs/prototype/trunk/src/event.js
Interesting that you can't get back an array of listeners for an
element.
- Jon
On Sep 4, 2007, at 8:00 PM, tedd wrote:
> At 1:37 PM -0400 9/4/07, Kenneth Downs wrote:
>> I cannot seem to figure out which javascript function I would use
>> to determine the event listeners that have been added to an
>> element. Can anybody steer me on this? Thanks...
>>
>> --
>> Kenneth Downs
>
> Kenneth:
>
> You probably should post this question to a javascript list, but a
> listener is triggered by an event.
>
> I can think of 7 (may be more) and they all start with "on" (i.e.,
> onBlur, onClick, onSubmit, onLoad, onChange, onMouseOut,
> onMouseOver) not counting onreadystatechange via ajax/ahah.
>
> So, what triggers the event for the element?
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070904/8ad37acd/attachment.html>
More information about the talk
mailing list