Narfix
06-19-2006, 02:39 PM
Hello !
I have one little problem in one of my application.
I start a timer as I run a background work but the second time I start the background thing, the timer doesn't start.
function RunBackgroundTask() {
var mytimer = setTimeout("UpdateTimer()", 500);
LaunchAjaxthing();
}
function UpdateTimer() {
pct = oCIA.CIAReadData(sID,"PCT");
if(pct!="-1") {
setTimeout("UpdateTimer()", 500);
report.innerHTML="'" + pct + "'";
}
}
I didn't put all the details of RunBackgroundTask but if needed I will.
Thanks for the help !
I have one little problem in one of my application.
I start a timer as I run a background work but the second time I start the background thing, the timer doesn't start.
function RunBackgroundTask() {
var mytimer = setTimeout("UpdateTimer()", 500);
LaunchAjaxthing();
}
function UpdateTimer() {
pct = oCIA.CIAReadData(sID,"PCT");
if(pct!="-1") {
setTimeout("UpdateTimer()", 500);
report.innerHTML="'" + pct + "'";
}
}
I didn't put all the details of RunBackgroundTask but if needed I will.
Thanks for the help !