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.
Written by Mufid
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#