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.
>>
>> How can I do this in jQuery? Preferably, in one line (true to jQuery
>> spirit :)) ).
>>     
>
>
> You may want to use ajaxSend instead ajaxStart.  ajaxSend is passed
> the xhr and the settings object for the ajax call.  This should give
> you the context you need to figure out where the loading indicator
> should go.
>
> $().ajaxSend(function(e, xhr, settings) {
>     // your code
> });
>
> Mike
>
>   
Still. This is still like a proctologist performing an eye surgery :))
Big thanks for the tip, though!
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to