how do i get ajax to call after previous success is complete
<p>I am currently using this ajax queuing plugin <a href="http://www.onemoretake.com/2009/10/11/ajaxqueue-and-jquery-1-3/" rel="nofollow">http://www.onemoretake.com/2009/10/11/ajaxqueue-and-jquery-1-3/</a> and it works fine, except weh ajax call 1 finishes, ajax call 2 starts that is dependent on a value that the success functions generates when ajax 1 is complete.</p>

<p>Is there a way to start of all ajax calls when the previous call is complete and success function has been run?</p>

<p>thanks</p>

<hr>

<p>I got it kindof working with this.. clientid triggers ajax and returns a JSON struct.. that populates building dropdown, building trigger calls another ajax but is being trigger after the first ajax call is made but before the success function is complete.. using a delay is unreliable.. any ideas? </p>

<pre><code>var body = $('body');
body.queue('bodyQueue', function(){ $('#Client_ID').trigger('change');  $(this).dequeue('bodyQueue');}).delay(1000, 'bodyQueue');

body.queue('bodyQueue', function(){ $('#Building_ID').trigger('change');  $(this).dequeue('bodyQueue');});
body.dequeue('bodyQueue');
</code></pre>

<hr>

<p>Better yet, if i can stop and start the ajax queue, that would be better, is that possible?</p>
