Constant reload of a DIV?
<p>Ok, I've looked around Stack and other places for the past 4 or 5 hours trying to find a solution to my problem. </p>

<p>I have an Iframe inside of a page which contains 5 lines of information, the information is fetched from a database. Said info will constantly change, therefor a need it to be refreshed every 1-5 seconds, can stretch to 10 seconds if needs be.</p>

<p>I have used the below code, which works, but crashed my browser(s) for some reason, I'm guessing reloading too fast?</p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
   var auto_refresh = setInterval(
   function ()
   {
      $('#info').load('mid.php');
   }, 5000); // refresh every 5000 milliseconds
&lt;/script&gt;
</code></pre>

<p>Below is the code from mid.php (There is PHP inside the page but this is the part that I need refreshing).</p>

<pre><code>&lt;div id="info"&gt;&lt;font size="2"&gt;
   &lt;b&gt;Crimes: &lt;/b&gt;&lt;font color="white"&gt;&lt;?php  if ($fetch-&gt;lastcrime &lt;= time()){ echo  'Ready'; }else{   echo "".maketime($fetch-&gt;lastcrime).""; } ?&gt;&lt;/font&gt;&lt;br&gt;
   &lt;b&gt;GTA: &lt;/b&gt;&lt;font color="white"&gt;&lt;?php  if ($fetch-&gt;lastgta &lt;= time()){ echo 'Ready'; }else{   echo "".maketime($fetch-&gt;lastgta).""; } ?&gt;&lt;/font&gt;&lt;br&gt;
   &lt;b&gt;Chase: &lt;/b&gt;&lt;font color="white"&gt;&lt;?php if ($fetch-&gt;last_chase &lt; time()){ echo 'Ready'; }else{ echo "".maketime($fetch-&gt;last_chase).""; } ?&gt;&lt;/font&gt;&lt;br&gt;
   &lt;b&gt;Extortion: &lt;/b&gt;&lt;font color="white"&gt;&lt;?php if ($fetch-&gt;last_ext &lt; time()){ echo  'Ready'; }else{ echo "".maketime($fetch-&gt;last_ext).""; } ?&gt;&lt;/font&gt;&lt;br&gt;
   &lt;b&gt;Rank:&lt;/b&gt;&lt;?php echo "$fetch-&gt;rank"; ?&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/div&gt;
&lt;/table&gt;
</code></pre>

<p>I know I can use HTML to refresh the Iframe but it looks unsightly when the whole top left corner of the screen refreshes every 3 seconds, any help is much appreciated.</p>

<p>Thanks</p>