I have a timer going on my page at an interval of 10s. It is created using setTimeout("myWork()", 10000). It works perfectly. At some point in time based on some conditions, I clear this interval and create a new one that has to tick at 1s interval.
var tenSecTimer = 0;
if (myCondition)
{
clearTimeout(tenSecTimer);
tenSecTimer = setTimeout("myWork()", 1000);
}
This whole process works fine on all versions of IE and FireFox. When I have this page opened in Chrome (6.0), then ticker stops working after clearTimeout gets called. It never recognizes 1s timer.
Something I am missing for latest chrome?
Thanks