several ajax calls on submit?
Is this possible?
$('form').submit(function(){
$.post("some.php", { "array": submitedarray}, function(data){
if(data == "1"){
$.post("other.php", function(data){
if(data == "1"){
开发者_如何学C alert("zzzzzzzzz");
}
}
}else
alert("Error!");
});
return false;
});
The first ajax call works the second it doesn't how can I make both to work?
Yep! Possible.
Check on Ajax Queue here
and this.
精彩评论