[jQuery] Re: Can I somehow see what events are binded to a DOM element?
jayarjo, you might be interested in firequery, an experimental firebug extension that visualizes jQuery manipulations. http://firequery.binaryage.com/ On Oct 29, 7:54 am, Bjarki wrote: > Using firebug: > you can write $('selector').data('events') in the console and run it. > then you will get all the events bound to that object. > > you can click the events in firebug and go to there source to view > them. > > On Oct 28, 11:45 am, jayarjo wrote: > > > I wonder if I can see somewhere what events are binded to a DOM > > element (in FireBug maybe). Maybe it's obvious, but I just don't know > > yet if it's even possible.
[jQuery] Re: Can I somehow see what events are binded to a DOM element?
Using firebug: you can write $('selector').data('events') in the console and run it. then you will get all the events bound to that object. you can click the events in firebug and go to there source to view them. On Oct 28, 11:45 am, jayarjo wrote: > I wonder if I can see somewhere what events are binded to a DOM > element (in FireBug maybe). Maybe it's obvious, but I just don't know > yet if it's even possible.
[jQuery] Re: Can I somehow see what events are binded to a DOM element?
Looks interesting, also I couldn't find the way to query it for specific DOM elements. However, as I figured out events are just set on DOM elements with .data() function. So it just a matter of some scripting to list them all in the console. Pretty straightforward. Firebug people are building an extension EventBug, although they can't say when it will be ready or released: http://blog.getfirebug.com/2009/09/18/eventbug-rising/ This one turned out to be very useful - cuts down amount of scripting needed to just one line: http://james.padolsey.com/javascript/debug-jquery-events-with-listhandlers/. Thumbs up! On Oct 28, 4:21 pm, Karl Swedberg wrote: > On Oct 28, 2009, at 7:45 AM, jayarjo wrote: > > > > > I wonder if I can see somewhere what events are binded to a DOM > > element (in FireBug maybe). Maybe it's obvious, but I just don't know > > yet if it's even possible. > > this bookmarklet might help: > > http://www.sprymedia.co.uk/article/Visual+Event > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com
[jQuery] Re: Can I somehow see what events are binded to a DOM element?
On Oct 28, 2009, at 7:45 AM, jayarjo wrote: I wonder if I can see somewhere what events are binded to a DOM element (in FireBug maybe). Maybe it's obvious, but I just don't know yet if it's even possible. this bookmarklet might help: http://www.sprymedia.co.uk/article/Visual+Event --Karl Karl Swedberg www.englishrules.com www.learningjquery.com