954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need To Save Timer In Cookies


Time remaining:


enggars
Newbie Poster
22 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Why do this? It seems pointless.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 
Why do this? It seems pointless.

Well the countdown has the set timeout. When the page is refreshed, the set timeout always start from beginning. i need to get the time when the page is refreshed, so i can have the elapsed time.

Thenthe new set timeout = the previous set timeout - elapsed time.

But actually, i found some way to do this using session instead of cookies. Though it needs some modification on the javascript.

Thanks anyway...

enggars
Newbie Poster
22 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You