Asynchronous for cycle in JavaScript
<p>How could I do this...? Do you have any ideas? Thank you.</p>

<pre><code>for ( /* ... */ ) {

  someFunction(param1, praram2, function(result) {

    // Okay, for cycle could continue

  })

}

alert("For cycle ended");
</code></pre>
