Have a small form with one input as text and two hidden inputs coming from the server. One hidden element is set to the date from the server the other one to the time. As soon as you get them create a date object in Javascript based on the hidden values and assign the result to the textbox. Have a timer that refreshes the now sync date/time box every second.
That should do it.
I would throw some lines of code but right now I'm in the middle of something. Let me know how it goes. Probably today after work I can write the code.
grtfercho çB^]\.. "Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------
If you're looking to have a running clock on the page, then grtfercho's solution will work.
However, if you're just looking to stamp the time/date on the page with the current time/date on the server, then there are functions that will do that for you based on the language you are utilizing (if not html).
For example, php has the functions time() and date() that return the server's time and date, not the client's.
*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.