I am using jQuery version 1.5.1 and this does not work for me:
$(window).ajaxComplete(function() { console.log('hello'); });
but this:
$(document).ajaxComplete(function() { console.log('hello'); });
Why can't I bind an event handler to $(window) ?
Note: this code works with jQuery v1.3.2, but not with v1.5.1
source share