This topic is locked

Timer

1/16/2012 8:11:39 PM
PHPRunner General questions
author

Hi
I have written this code as a client after in the button tabs. I want to check for an update on a php session script that takes about 8 minutes to run and display an update message.
My code does not work, any ideas whats wrong (I am really bad a javascript)
var int=self.setInterval("timer()",1000);

function timer()

{

var name = "<?php echo $_SESSION["TIMER"]; ?>";

document.write(name);

}
Thanks