This is the code that did not work:
$(document).ajaxStop(function() { $(this).unbind("ajaxStop");
And here is my Ajax function:
function getAjax(url, callback) { jQuery.ajaxPrefilter(function( options ) { options.global = true; }); $.ajax({ url: url, type: "GET", dataType: "jsonp", success: callback }); }
Why ajaxStop() never starts?
source share