title: jQuery: Possible to wait for $.get to finish loading before continuing?
body: <p>The folowing script does not wait for $.get to finish loading the page before continuing with the loop:</p>
  
  <pre><code>$.each(data.songs, function(index, val) {
      $('#nowartist')
           .append('song starting');
      $.get("http://localhost/play.php", function(data){
           alert('done');
      });
  });
  </code></pre>
  
  <p>data is a JSON object</p>
  
  <p>Any ideas or comments will be greatly appreciated.</p>