It comes down to using the $.ajaxStart and $.ajaxStop.

Basically, a function wrapped in $.ajaxStart will run when any ajax call starts, while a call to $.ajaxStop will run when no more ajax calls are running.

So you can do something like:

$.ajaxStart(function() {
  $("#loading").show();
});

$.ajaxStop(function() {
  $("#loading").hide();
});

You can also use the ajax callback functions in any ajax function to do per-call loading graphics.

-- Yehuda

On 8/27/06, Mike Alsup < [EMAIL PROTECTED]> wrote:
> Can you show me a little example using AJAX Activity Indicators? (with
> jQuery of course).

This page uses the ajaxStart/ajaxStop functions:
http://www.malsup.com/jquery/taconite/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer
(ph)  718.877.1325
(fax) 718.686.4288
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to