I have Array of Ajax requests, the length of this Array. When I know that they are all loaded I want to process the results
The code I’m using is
$.when(
RequestArray
).done(function(){
this.processResults();
});
Does anyone have any ideas why it’s not working?
When I replace RequestArray with RequestArray[0], RequestArray[1] it works perfectly.
Thank you
the $.when not accept a request array. you shoudl use
$(requestArray).each($.when(this).done(......));