This is untested but something like:

var ajaxCalles = 16;
  $("#meter").attr("src","img/meter_on.gif") // change the src tag to the
animate gif
$.ajax({
url: 'myurl',
success : function(){//do processing},
error: function(){/process error},
complete : function(){
ajaxCalles--;
if(ajaxCalles == 0){
$("#meter").attr("src","img/meter_off.gif")
}
} // this gets called after success and error callbacks are executed
});

Make your group of ajax call like above and that should get you going.


On 1/8/08, Trans <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On Jan 8, 4:34 pm, "Benjamin Sterling"
> <[EMAIL PROTECTED]> wrote:
> > T,
> > Keep you head up, we have all felt that way.
>
> Thanks Benjamin and Josh. I'm frustrated but I'm determined too! :-)
>
> What you both suggest makes sense enough, but I don't just have a
> single file to pull down. I'm loading 16 files. It seems silly to turn
> the image on and off for each one. And I tried ajaxStart and ajaxStop
> and that didn't work either, it gives the same result.
>
> How would I aplly your suggestion to loading multiple files?
>
> Thanks,
> T.
>



-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com

Reply via email to