jQuery: consecutive Ajax requests allowed?
<pre><code>$(document).ready(function() {
  $("#firstTimeSubmit").click(function(event) {
    event.preventDefault();
    var name = $("#firstTimeText").val();
    if (name == "" || name.length &gt; 12) {
      $("#updates").html("&lt;b&gt;Dummy! Invalid name!&lt;/b&gt;");
    } else {
      $.ajax({
        type: "GET",
        url: "http://hiscore.runescape.com/index_lite.ws?player=" + name,
        success: function() {     
          $.ajax({
            type: "POST",
            url: "includes/handlers/firsttime.php",
            data: { name: name },
            success: function() {
              $("#updates").html("&lt;b&gt;Now tracking: " + name + "&lt;/b&gt;");
            },
            error: function() {
              $("#updates").html("&lt;b&gt;Already being tracked.&lt;/b&gt;");
            }
          }); 
        },
        error: function() {
          $("#updates").html("&lt;b&gt;Name doesn't exist.&lt;/b&gt;"); 
        }      }  
      });
    }
  });
});
</code></pre>

<p>Should the $.ajax request inside the other $.ajax request work?</p>
