jquery - How do I catch Javascript functions that are being called? -


i'm working cognos, frustrating bi application relies heavily on javascript. basically, when <select> box changed, data on screen refreshed, presumably ajax function or similar. i'd force change using jquery, i'm not sure how intercept call making can duplicate it. there's metric ton of js code, it's hard find hand.

is there way using firebug display different functions being called? approach correct?

if open firebug script panel, on top left there's button looks pause button on tv remote: ||. tells firebug pause on next bit of javascript runs. i'd page open, ensure script panel enabled, click button, change select box. should trigger breakpoint in firebug, after can step through code figure out what's being called when.

alternately, if don't mind using different tool, google chrome has built-in debugger , inspector can show event handlers attached element. in chrome, if bring page, right-click select box , choose inspect element, on right-hand side @ bottom there should list of event handlers attached it. may bit easier work with.

finally, in either tool, if can identify bit of code in guts that's causing data reload (by looking url, instance, or xmlhttprequest instance, or jquery's .ajax, .post, .get, or .getjson functions if it's using jquery), can put breakpoint on , trigger select, @ call stack (on right-hand side in both tools).

good luck!


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -