Attemp at jquery refreshing a div and php
<p>I'm trying to refresh a div with jquery that loads the time which is generated with php. </p>

<p>I've read some of the articles on jquery that were already on here and tried using those to refresh my div, but I failed.</p>

<pre><code>echo '&lt;!DOCTYPE html&gt;
&lt;html lang="en" dir="ltr"&gt; 
&lt;head&gt; 
&lt;meta charset="utf-8" /&gt;
&lt;title&gt;' . $title . '&lt;/title&gt;
&lt;link type="text/css" rel="stylesheet" media="all" href="styles/style.css" /&gt; 
&lt;link type="text/css" rel="stylesheet" media="all" href="styles/layout.css" /&gt; 
&lt;link type="text/css" rel="stylesheet" media="all" href="styles/' . $bodycss . '" /&gt; 

&lt;/head&gt; 
&lt;body&gt;

&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript" src="jquery.timers.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

var auto_refresh = setInterval(
function update() {
  $.get("'.$_SERVER['REQUEST_URI'].'", function(data) {
    $("#time").html(data);
    window.setTimeout(update, 500);
  });
}
&lt;/script&gt;



&lt;div id="container"&gt;
 &lt;header id="header" class="margin5"&gt; 
    &lt;div id="info"&gt;  &lt;a href ="home.php"&gt; &lt;img src="images/logo.jpg" alt="Oppasweb" /&gt; &lt;/a&gt; &lt;/div&gt; 
    &lt;div id="time"&gt;&lt;time datetime=' . getTimeForTag() . '&gt;' . getTime() . '&lt;/time&gt;&lt;/div&gt; 


         &lt;div class="clear"&gt;&lt;/div&gt; 

';
}
</code></pre>

<p>The javascript should refresh the div every .5 of a second, generating the new time, however it doesn't do that, the time stays static.</p>
