is there a sleep() workaround for JavaScript?
<p>So that I could use a loop, and have it pause, say 250 ms after each iteration?  [ without setTimeout or setInterval?]</p>

<p>Edit:  Ok, so I have a for loop that uses AJAX to post data (<strong>$.ajax()</strong>) . It has lots of vars in it, like <strong>data: 'uid=' + <em>uid</em>, + '&amp;othervars=' + <em>morevars</em></strong> etc, and <strong>each loop, the variables change</strong>.. so If put that [huge] part into a function() {} [Inside of a setTimeout(), using a counter in the loop to increment the timeout], when it executes, will the <em>actual value</em> be in place where I put the vars? </p>
