I have 3 ajax functions that I use to get data from the database. What I want is to repeat each one that encountered any errors.
Basically, this is what I have:
getDevices(); //1st ajax function
getLocs(); //2nd ajax function
getStats(); //3rd ajax function
$(document).ajaxStop(function(event){
//For each ajax that finished
//if ajax.status = error, do it again
});
Any suggestions? Thank you.