i need to call this post function n-times
$.post("prova.php", { myparameter:p1 },
function(msg){
alert('ok')
}
);
so looping it like:
for(i=0;i<myArray.length;i++){
$.post("prova.php", { myparameter:p1 },
function(msg){
updateUI();
}
);
}
how can i stop other myArray.length -2 $.post when the first is still active? i hope my question is clear.. thanks!!
Can you try that
UPDATE
All in one function
var x = myArray.length; // n times you want