I can get response when 'all' Ajax requests are done from this question.
Wait until all jQuery Ajax requests are done?
While I can't find a question to get 'every' response when each Ajax are done.
How can I do this?
Example for wait until all responses done, but I want to get response when each ajax complete.
function translate(...){
return $.ajax({
// settings...
});
});
var requests = [];
translatable_fields.each(function(){
requests.push(translate(...));
});
$.when.apply($, requests).done(function(schemas) {
console.log("All requests complete");
// do something...
});