I am currently using this ajax queuing plugin http://www.onemoretake.com/2009/10/11/ajaxqueue-and-jquery-1-3/ 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.
Is there a way to start of all ajax calls when the previous call is complete and success function has been run?
thanks
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?
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');
Better yet, if i can stop and start the ajax queue, that would be better, is that possible?