3

If I use CEFGlue CefDomVisitor class I can navigate around the DOM. Great, really useful and good job by the developers

Is there any way to pick up what event listeners are associated with a Tag?

Essentially id like to pick up the javascript that 'would' run when the element is clicked (for example). I think I can achieve this by finding out what is listening to the elements event. Then I want to run it independently of the event.

Hope this makes sense, and any help feedback or comment very much appreciated

Thanks

Ron Weston
  • 280
  • 2
  • 16
  • If you are trying to get information about the DOM and the elements that have events jQuery can help you with that. But I am not sure what you are asking. – CaptainBli Sep 17 '14 at 19:49
  • 1
    This isn't exactly what you would be looking for but: `$._data( $("#foo")[0], "events" );` from http://stackoverflow.com/questions/2008592/can-i-find-events-bound-on-an-element-with-jquery – CaptainBli Sep 17 '14 at 19:55
  • Cap'n the 50 gold coins are in your chest perfect – Ron Weston Sep 18 '14 at 21:33
  • Damn how do I mark that as the answer ? I'm i really that dumb! – Ron Weston Sep 18 '14 at 21:38

1 Answers1

1

If you are trying to get information about the DOM and the elements that have events jQuery can help you with that. But I am not sure what you are asking.

This isn't exactly what you would be looking for but: $._data( $("#foo")[0], "events" ); from event info from jQuery

Community
  • 1
  • 1
CaptainBli
  • 4,121
  • 4
  • 39
  • 58