Clocks and Time

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Yo

On a form have the time been displayed in a textbox. Can anyone suggest a simple way of keeping the time upto-date without having to reload the page every sec.

Mike.
 
What time do you want to display. Server time, or user local time? If you want to display the local time, you'll have to get some script in the page to do it, else you'll have to generate the time on the server and refresh quite often.

If you want server time without constant refresh you could create a java-script on the page that takes an offset to the local time, and applies that every update.
FOr instance, the user has +8 hours offset to the server time. The script updates its time every second and applies that 8 hour offset.

Can't help you with a page script though, not my cup of thee ;).
 
Back
Top