title: Pause jQuery ajax script until script returns successfully
body: <p>I have the following code at the end of an <code>.each()</code> function that loops close to 50 times.</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "/process.php",
      data:  "info="+info,
      success: function(html){
          // $('#container').html(html);          
      }
  });
  </code></pre>
  
  <p>How can I pause the script during each iteration so it will wait until each ajax post is successful before executing the next <code>.each()</code>?</p>
  
  <p>I'm basically trying to prevent the queuing of ajax requests.</p>