141
rated 0 times
[
148]
[
7]
/ answers: 1 / hits: 65705
/ 14 Years ago, fri, november 26, 2010, 12:00:00
I need a loop that waits for an async call before continuing. Something like:
for ( /* ... */ ) {
someFunction(param1, praram2, function(result) {
// Okay, for cycle could continue
})
}
alert(For cycle ended);
How could I do this? Do you have any ideas?
More From » javascript