Monday, 19 August 2013

action after all of AJAX request finish

action after all of AJAX request finish

I trying to execute an action after the ajax, but I can't
$.each(LinkUnique,function(i){
$.ajax({
type: "POST",
url: 'http://xxxx.net/',
success: function(msg){
if(msg.indexOf("http://") !=-1)
link = link+msg+"\n";
}
});
});
Here the next action after the script:
alert("Finish");
async: false isn't a good option because my page stops completely.

No comments:

Post a Comment