title: How can i stop ajax request (don't wait untill response come)?
body: <p>If I use Ajax to send request and this request take long time ..... if I want to send anther request what should I do?</p>
  
  <p><em>the current behaviour</em> the second request (I did) waiting until the first request get with response.</p>
  
  <p><strong>NOTE :</strong>
  i want to do this behaviour on whole application (any new request execute immediately not wait the old one to be finished firstly)
  My application using (Ajax + PHP + jQuery + Symfony)</p>
  
  <p>Assume that is the first request take long time:</p>
  
  <pre><code>$.ajax
  ({
      type: "GET",
      url: url1,
      success: function (html)
      {
         // do some thing  
      }
  });
  </code></pre>
  
  <p>In any time I want this request to execute and terminate the first one. </p>
  
  <pre><code>$.ajax
  ({
      type: "POST",
      url: url,
      success: function (html)
      {
         // do some thing else 
      }
  });
  </code></pre>
  
  <hr>
  
  <pre><code>var xhrReq;
  xhrReq = $.ajax(...);
  
  // then if you want to stop the rqest and exit use :
  
   xhrReq.abort();
  </code></pre>