tags:

views:

85

answers:

2

I have this at the top of my jQuery script:

   $().ajaxStart(function() {
      alert('ok');
   });

But the alert is not firing. All the other ajax is working, so I'm not sure why this isn't.

+1  A: 

Please try this:

$(document).ajaxStart(function(){alert("aa");});

HTH

Raja
+2  A: 

Try calling ajaxStart on document:

$(document).ajaxStart(function() {
    alert('ok');
});

$().ajaxStart worked before jQuery 1.4 but no more.

Darin Dimitrov
OK, thanks Darin!
cf_PhillipSenn