I have
// Ajax setup $.ajaxSetup({ beforeSend: function() { $('#general-ajax-load ').fadeIn(); }, complete: function() { $('#general-ajax-load ').fadeOut(); } });
on the page load to set the loading animation for all my ajax calls. It works fine except for load () calls. For downloads, only beforeSend is launched, and termination is never called, which results in an animation that never disappears.
Any idea?
ajax autocomplete
umpirsky
source share