8
edits
Beteljuice (talk | contribs) m (→Configuration) |
Beteljuice (talk | contribs) |
||
Line 149: | Line 149: | ||
try { if (xx.readyState == 4 && xx.status == 200) { | 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) | } // END if (xx.readyState == 4 && x.status == 200) | ||
Line 165: | Line 162: | ||
setTimeout("file_data(phpdatFile + '?' + new Date().getTime())", 1000); // get new data | setTimeout("file_data(phpdatFile + '?' + new Date().getTime())", 1000); // get new data | ||
} | } | ||
} // end file_data function | } // end file_data function | ||
Line 185: | Line 181: | ||
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 | 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= | =Example= |
edits