HI, please i would like to know how can i call to a function every 1 sec.
i try to put the real time in my form? I put this in the initialize event of a text field named "TimeNow" , I know to make it worked one time but every sec no, hoe can i make it with(setTimeout or setInterval) ?
thanks in advenced,
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
page1.header.TimeNow.rawValue=h+":"+m+":"+s;
//t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
startTime();