H
Harag
Hi all
I think this is in the wrong group but since I don't read others much
or code in java script I was wondering if anyone could help me with
this small problem, as I code mostly in ASP vbscript.
I have the following piece of Javascript client code that displays the
users clock on the browser and updates it every second.
I was wondering is it possible for me to set the time to the SERVER
time via ASP vbscript. and then update this time every second on the
users browser. I want all users to see the time & date of the SERVER
and not thier time/date. I've tried looking at
www.javascriptsource.com and not found anything that might help.
The current code I have is:
function NewTime() {
mDateTime1 = Date().split(" ");
var clockHandle = true; // Dummy init value
clockHandle = GetElement('MyDateTime');
if (clockHandle) {
clockHandle.innerHTML = mDateTime1[1] + " " +
mDateTime1[2] + ", " + mDateTime1[4] + ", " + mDateTime1[3];
}
setTimeout("NewTime()",500);
}
Could anyone modify this so I can set the time for it to start at???
Thanks for any help on this matter.
Al.
I think this is in the wrong group but since I don't read others much
or code in java script I was wondering if anyone could help me with
this small problem, as I code mostly in ASP vbscript.
I have the following piece of Javascript client code that displays the
users clock on the browser and updates it every second.
I was wondering is it possible for me to set the time to the SERVER
time via ASP vbscript. and then update this time every second on the
users browser. I want all users to see the time & date of the SERVER
and not thier time/date. I've tried looking at
www.javascriptsource.com and not found anything that might help.
The current code I have is:
function NewTime() {
mDateTime1 = Date().split(" ");
var clockHandle = true; // Dummy init value
clockHandle = GetElement('MyDateTime');
if (clockHandle) {
clockHandle.innerHTML = mDateTime1[1] + " " +
mDateTime1[2] + ", " + mDateTime1[4] + ", " + mDateTime1[3];
}
setTimeout("NewTime()",500);
}
Could anyone modify this so I can set the time for it to start at???
Thanks for any help on this matter.
Al.