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.
<script type="text/javascript">
setTimeout(read(),3000);
function read(){
setTimeout(jQuery.get('now.txt',function(data){
document.write(data);}),1000);
}
</script>