title: Multiple jQuery ajax calls; how can associate callbacks to requests?
body: <p>If you are dynamically creating ajax requests, since they come to execute the success callback asychronously, how can you know what request is being responded by each callback ?</p>
  
  <p>Example:</p>
  
  <p>I have an array of n Questions, and a server gives back the Answers:</p>
  
  <pre><code>var questions = Array("What's your name?", "What's your mom's name?", "What's your pet's name?");
  for (var i=0; i&lt;questions.length; i++) {
              $.get ("server.php", { "Question" : questions[i] },
                      function(data) { 
                          /* I want to process answer, but at this time I cannot access the value of i,
                             so what's question is being answered ? */
                      }, "json");
  }
  </code></pre>