RecentUpload: Difference between revisions

159 bytes removed ,  22 August 2009
m
try { if (xx.readyState == 4 && xx.status == 200) {
document.getElementById('the_content').innerHTML=xx.responseText;
// var currdat = x.responseText.replace(/\r\n/g, ""); // this gets rid of any line ending
// var currdat = currdat.split(' '); // populate the array
document.getElementById('the_content').innerHTML=xx.responseText;
} // END if (xx.readyState == 4 && x.status == 200)
setTimeout("file_data(phpdatFile + '?' + new Date().getTime())", 1000); // get new data
// }
}
} // end file_data function
 
To change the refresh rate adjust the figure 1000 in the code above. This is the time in milliseconds. So to refresh every 30 seconds it would be 30000
 
 
 
 
=Example=
8

edits