I need to make two different JSON requests and combine these requests into one function. I would like to use the following construction:
$.when( $.getJSON(url1), $.getJSON(url2) ).done(function(data1, data2) { someFunction(data1, data2); });
Unfortunately, for this project we are using jQuery 1.4 and $ .when was introduced with jQuery 1.5. Is there any equivalent for this in jQuery 1.4?
Thanks in advance!
Annemarie
source share