Periodic timer not working with .load
<p><strong>Problem:</strong></p>

<p>I believe that .load is blocking but is intended to be asynchronous.</p>

<p><strong>Code:</strong></p>

<pre><code>$(window).load(function(){
    $('#content').load('/ajax/databaseworking.php');
    setTimeout(function(){ $('#content').load('/ajax/databaseperform.php');}, 5000);
});
&lt;/script&gt;
</code></pre>

<p><strong>Further Details:</strong></p>

<p>The code basically calls databaseworking.php to do some database maintenance. Every 5 seconds, an ajax call is made to get its progress. </p>

<p>I have checked my logs. databaseworking.php and databaseperform.php are being called. However, databaseperform.php is not being called periodically. In other words, its only being called once.</p>

<p>As a test, I commented out the databaseworking call. This lead to the the progress function being called per interval as intended. This makes me believe that there is a problem with load. Note I have checked and tested databaseworking.php and there shouldnt be an error in there.</p>
