Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Rey Bango
Yes. Rey Dmitrii 'Mamut' Dimandt wrote: > Hmm.. Does it mean that this indicator only appears once per specified > ajax request? > > Rey Bango wrote: >> Hi Dmitrii, >> >> I actually ran into this same issue recently and basically took the >> route of unbinding the ajaxstart event after the Aja

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Mike Alsup
> Hm... Still doesn't sound like fun :) I wish there could be a way to do > something like: > > $.load( > $("myid"), > url, > params, > { > onStart: function(){someLoader.show();}, > onEnd: function(){someLoader.hide();} > } >

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Mike Alsup wrote: >> This is still like a proctologist performing an eye surgery >> > > How so? You have control over everything in the settings object. And > you can add any properties to it that you wish. So consider: > > $.ajax({ > url: myUrl, > type: 'post', > indicatorId: '

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Stephen Woodbridge wrote: > Dmitrii 'Mamut' Dimandt wrote: > >> Mike Alsup wrote: >> $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a "loading..." in one place, for another ajax call - a "loading..." i

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Hmm.. Does it mean that this indicator only appears once per specified ajax request? Rey Bango wrote: > Hi Dmitrii, > > I actually ran into this same issue recently and basically took the > route of unbinding the ajaxstart event after the Ajax call was done. > Here's my code: > > // This is the

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Stephen Woodbridge
Dmitrii 'Mamut' Dimandt wrote: > Mike Alsup wrote: >>> $.ajaxStart() is invoked for every ajax call that's made on the page. >>> >>> However, for one ajax call I need to display a "loading..." in one >>> place, for another ajax call - a "loading..." in another place and for >>> yet a third ajax c

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Rey Bango
Hi Dmitrii, I actually ran into this same issue recently and basically took the route of unbinding the ajaxstart event after the Ajax call was done. Here's my code: // This is the Ajax indicator $('#throbberSearch') .ajaxStart(function(){ $("searchResul

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Mike Alsup
> This is still like a proctologist performing an eye surgery How so? You have control over everything in the settings object. And you can add any properties to it that you wish. So consider: $.ajax({ url: myUrl, type: 'post', indicatorId: '#indicator3' }); $().ajaxSend(function(e

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Mike Alsup
> $.ajaxStart() is invoked for every ajax call that's made on the page. > > However, for one ajax call I need to display a "loading..." in one > place, for another ajax call - a "loading..." in another place and for > yet a third ajax call a "loading" in a third place. > > How can I do this in jQue

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Dmitrii 'Mamut' Dimandt
Mike Alsup wrote: >> $.ajaxStart() is invoked for every ajax call that's made on the page. >> >> However, for one ajax call I need to display a "loading..." in one >> place, for another ajax call - a "loading..." in another place and for >> yet a third ajax call a "loading" in a third place. >> >>

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Jake McGraw
You could always show the loading animation just before the ajax call and hide it within the calls callback function: $("#loading1").show(); $.get('handle.php',input,function(){ // Do stuff $("#loading1").hide(); }); Not as pretty as $.ajaxStart(), but this is the only way I see to handle multi

[jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Dmitrii 'Mamut' Dimandt
Ok. I'm at loss here. $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a "loading..." in one place, for another ajax call - a "loading..." in another place and for yet a third ajax call a "loading" in a third place. How can I do t