If you want this function to be calles every X miliseconds, use window.setInterval
Code:
function Refresh() {
// function body
}
window.setInterval("Refresh()", <?php echo (int) $ScreenRefreshRate ?>)
// I put (int) just to make sure it's not giving JS error if you send anything else than an INT.
@RodionGork: Try to avoid using <?=$var ?> and get used to use allways <?php echo $var ?>. There are some webservers out there that don't interpret the short form of PHP.
Last edited by hyperionXS; 03-05-2012 at 01:22 PM.
Bookmarks