If you only want to call one, then just provide it as the callback to your main Ajax call. .ajaxStart() is designed to work globally, whereas calling .attr() just before you make an Ajax call would work for that immediate call.
--John On 4/2/07, ronaldo <[EMAIL PROTECTED]> wrote:
Hi all, I hope you can help. I have a page where i am trying to make two seperate ajax calls. and as such in the document.ready code i have 2 seperate ajaxStart function depending on which div's need updating: $("#diva").ajaxStart(function(){ $("#diva").prev("img").attr({ src: "images/busy.gif" }); }); and $("#divb").ajaxStart(function(){ $("#divb").prev("img").attr({ src: "images/3MA_processingbar.gif" }); }); However, when the ajax call starts, both div's fire up their respective ajaxStart animated gif's. I tried the option global: false; however that just makes the gif's disappear. What do I need to do to call only 1 specific ajaxStart function ? -- View this message in context: http://www.nabble.com/Seperate-Ajax-tf3507008.html#a9794906 Sent from the JQuery mailing list archive at Nabble.com.