May 14, 2004 #1 bmdev Programmer May 13, 2003 29 US Hello, I want to use a timer to show some different images on a page. When the user closes the page will the timers go away or be left hanging out there? When the page creates the timer, does the page use a timer on the server or on the client? Thanks!!
Hello, I want to use a timer to show some different images on a page. When the user closes the page will the timers go away or be left hanging out there? When the page creates the timer, does the page use a timer on the server or on the client? Thanks!!
May 14, 2004 #2 tviman Programmer Jul 25, 2002 2,123 US The javascript is in the client and not on the server. When the page goes away, so does the timer. There's always a better way. The fun is trying to find it! Upvote 0 Downvote
The javascript is in the client and not on the server. When the page goes away, so does the timer. There's always a better way. The fun is trying to find it!
May 14, 2004 #3 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB If you are talking about timers that are created with the setTimeout or setInterval commands, then: - The timers will go away when the page is unloaded, and - The timers are run purely client-side. There is no server-side interaction at all. Hope this helps, Dan Upvote 0 Downvote
If you are talking about timers that are created with the setTimeout or setInterval commands, then: - The timers will go away when the page is unloaded, and - The timers are run purely client-side. There is no server-side interaction at all. Hope this helps, Dan
May 14, 2004 #4 tanderso IS-IT--Management Aug 9, 2000 981 US If your code is Code: var timer = setTimeout("do_something()",x) Then, just save "timer" in a cookie and read that cookie whenever you come back to the page. Sincerely, Tom Anderson Order amid Chaos, Inc. http://www.oac-design.com Upvote 0 Downvote
If your code is Code: var timer = setTimeout("do_something()",x) Then, just save "timer" in a cookie and read that cookie whenever you come back to the page. Sincerely, Tom Anderson Order amid Chaos, Inc. http://www.oac-design.com
May 14, 2004 #5 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB >> just save "timer" in a cookie and read that cookie whenever you come back to the page. Tom, This would do no good, as the timer is destroyed when the page is unloaded... Referring to an old handle will only cause errors. Dan Upvote 0 Downvote
>> just save "timer" in a cookie and read that cookie whenever you come back to the page. Tom, This would do no good, as the timer is destroyed when the page is unloaded... Referring to an old handle will only cause errors. Dan