gzmx0a
Last Updated: February 25, 2016
·
85
· mufid
Dc22fe194638f451dfabd21dcd5ea461

Catch-all AJAX jQuery

I found somewhere around Stackoverflow, but i forget where is it : (

So there is too many standard jQuery $.post and $.get call. I want to debug every that call.

It is very simple. Just add

//var prevajax = jQuery.ajax;
//jQuery.ajax = function () { debugger; return prevajax.apply(jQuery, arguments) };

somewhere after jQuery loaded.

Say Thanks
Respond