(function($){
$(document).ready(function(){
$(document).ajaxComplete(function() {
console.log("finished")
});
});
})(jQuery);
this does not work after calling the prototype on the page.
But this prototype code works:
Ajax.Responders.register({
onCreate: function() {
console.log("start")
},
onComplete: function() {
console.log("finished")
}
});
There were problems with ajaxcomplete earlier, when several jquery libraries were loaded on the page, but now it is not.
Does jQuery ajaxComplete () detect prototypes of ajax calls?
Thanks!
source
share