I read through various threads like this one for example.
But it really escapes me how to accomplish the following:
I have 4 functions, and want them happen one
It's been a while and I noticed something about deferreds
in jquery documentation, specifically the when
core API function.
$.when( $.ajax("test.aspx") ).then(function(ajaxArgs){
alert(ajaxArgs[1]); /* ajaxArgs is [ "success", statusText, jqXHR ] */
});
Code sample taken from http://jqapi.com/#p=jQuery.when