Reputation: 187499
In my app I have the following code that displays a spinner while an AJAX request is in progress:
$("#spinner")
.on("ajaxSend", function() {
$(this).fadeIn('fast');
})
.on("ajaxStop", function() {
$(this).fadeOut('fast');
});
After upgrading from jQuery 1.8 to 1.10 this no longer works. I don't think it's because one of the functions I'm using has been removed, because there are no errors in the Firebug console.
Upvotes: 1
Views: 160
Reputation: 29664
Heres your problem I reckon, says this in the documentation:
As of jQuery 1.8, the .ajaxSend() method should only be attached to document.
http://api.jquery.com/ajaxSend/
Upvotes: 1