Last Updated: February 25, 2016
· mufid

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.