title: Recursive call function in jQuery AJAX with  ajaxStop
body: <p>I have a function:</p>
  
  <pre><code>function primaj(){
  $('#tmp').load('msg1.php');
  $("#tmp").ajaxStop(function(){
          //do some code
     primaj();
    });
  }
  </code></pre>
  
  <p>What I expect is for the load request to run, and when it finishes the function to be called again. But I see that after every call to the function, the next number of calls doubles, from 1 to 2 to 4 to 8 and so on...</p>
  
  <p>My intention is to make a continues load call to the server, but if I use a setInterval command (which works), sometimes the server takes longer to respond, thus the function is called over it's self.</p>
  
  <p>Is there a way to know when the ajax load command has stopped, and then call it again?</p>