Using Javascript to read and display a txt file dynamically
<p>I was trying to read a txt file and display its content in my web page, since its content changes over time, I want to update it periodically. Here is my code, it displays the content at first, but it won't change after I changed the file's content. Any suggestions? Thanks.</p>

<pre><code>&lt;script type="text/javascript"&gt;
        setTimeout(read(),3000);
    function read(){
    setTimeout(jQuery.get('now.txt',function(data){
    document.write(data);}),1000);
    }
&lt;/script&gt;
</code></pre>
