title: state of XMLHttpRequest Object in jquery AJAX
body: <p>In traditional javascript AJAX, we know if <code>readystate</code> is:</p>
  
  <ul>
  <li>0 - The request is not initialized</li>
  <li>1- The request has been set up</li>
  <li>2 - The request has been sent<br></li>
  <li>3 - The request is in process<br></li>
  <li>4 - The request is complete.<br></li>
  </ul>
  
  <p>When it comes to jQuery AJAX, we have: </p>
  
  <ul>
  <li><code>complete</code> property where we code what should happen after completion</li>
  <li><code>success</code>  property where we code what should happen if the ajax request succeeds and</li>
  <li><code>error</code> property where we code what should happen if ajax request fails.</li>
  </ul>
  
  <p>All of the above properties lets us code to do something after completion of ajax request. Where can I specify some code to execute something during processing(when readyState is 3) in Jquery Ajax??</p>
  
  <p>As my AJAX script takes too long time to execute, which means, I will not attain 'complete' stage quickly. This seems like nothing is happening to the user. I wanted to initiate another ajax script at processing stage which gets information from server meanwhile and shows the user what has been done so far. Is it possible at all in Javascript? I know there is no multi-threading in Javascript.</p>
  
  <p>I think I made my self clear. But, Please let me know if anything is not making any sense.</p>