8
edits
Beteljuice (talk | contribs) m (→Configuration) |
Beteljuice (talk | contribs) |
||
try { if (xx.readyState == 4 && xx.status == 200) {
document.getElementById('the_content').innerHTML=xx.responseText;▼
▲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=
|
edits