tags:

views:

63

answers:

1
+1  Q: 

jQuery ajaxStart

I have the following in my code, but I'm not getting an alert message, even though I can see the $.ajax call is working correctly.

(function($) { 
$('.debug').ajaxStart(function() {
alert('ajaxStart');
});
})(jQuery);

And of course, in the html, I have:

<div class="debug">
<h3>debug info:</h3>
</div>

Maybe it's because I use:

google.load("jquery", "1");
google.setOnLoadCallback(OnLoad);
+1  A: 

Yeah, that was it. I changed it to:

jQuery(function($) { 
});

and it worked.

cf_PhillipSenn