Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- combining setTimeout & setInterval


sssweb - 3:47 pm on Dec 5, 2011 (gmt 0)


Thanks Fotiman; in simplifying my code for posting, I neglected to mention that 'function()' is a named function, which I assume explains why it didn't work when I tried it w/o the quotes. That may also explain why I can't get your code to work as written. I've tried various tweaks to your second version:

setTimeout(function() { Timer = setInterval("myfunction() {}", 100); }, 1000);
setTimeout(function() { Timer = setInterval("myfunction()", 100); }, 1000);


Thread source:: http://www.webmasterworld.com/javascript/4394404.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com