title: Multiple AJAX (jquery) calls causing extreme slowness and crashing
body: <p>I wrote some code that asks for a user to enter a date range and click the next button. This triggers an AJAX call to a file that figures out what dates are included within those days and prints them out onto the screen.</p>
  
  <p>If the user changes the dates and presses "next" again, it does the calculation again. After doing this several times in a row it starts to run really slowly and eventually it will crash the browser all together.</p>
  
  <p>Does anyone know why this is happening and what I can do to fix it?</p>
  
  <p>Thanks very much for your time.</p>
  
  <pre><code>$("#list").ajaxComplete(function(request, settings){
       $('#addNewDays').bind('submit', function() {
              $(this).ajaxSubmit(function() {
                    $('#dateDisplay').load('calculateDays.php?employeeId=' + $('#employeeId').val() + '&amp;fromDay=' + $('#fromDay').val() + '&amp;toDay=' + $('#toDay').val());
              });
              return false; // &lt;-- important!
       });
  });
  </code></pre>