|
 |
asp_web_howto thread: Countdown
Message #1 by "Jerry Mounce" <jerry_mounce@m...> on Sat, 9 Dec 2000 18:31:29 -0000
|
|
Is it possible to create a countdown clock in asp? I can do this in using
Jscript but I need the time to count down from the server and not the
client.
The intent is to have a page that will display a clock using the time on
the server and a stopwatch also using the time on the server that will
countdown by seconds to an event. On the clock I would like to only
display the current time and on the stopwatch I would like to display
days, hours, minutes and seconds.
There are ubiquous Java examples using a countdown to y2k but they will
display the client time only. I can find nothing except unanswered
requests (from several sites and newsgroups) on how to do this using asp
technology. I need to use the server time so that no matter what time
zone the person accessing the page is in they will see an accurate
countdown until an event such as a live video broadcast. I could use
multiple clocks or complex code to correct time zone differences to make
it work but was hoping for something simple (which somtimes is harder to
build it seems <grin>).
I appreciate ANY response to know if this is even possible using asp...
Thanks,
Jerry Mounce
jerry_mounce@m...
Message #2 by "Gerhard Wentink" <wentink@w...> on Sun, 10 Dec 2000 06:49:03 +0100
|
|
I don't know is this is what you intend but you could of course get the date
and the time from the server by the Date en Time functions in VBscript with
ASP and then use these values in client-sided javascript to create your
clock.
Gerhard Wentink
----- Original Message -----
From: "Jerry Mounce" <jerry_mounce@m...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Sunday, December 10, 2000 4:25 AM
Subject: [asp_web_howto] Countdown
> Is it possible to create a countdown clock in asp? I can do this in using
> Jscript but I need the time to count down from the server and not the
> client.
>
> The intent is to have a page that will display a clock using the time on
> the server and a stopwatch also using the time on the server that will
> countdown by seconds to an event. On the clock I would like to only
> display the current time and on the stopwatch I would like to display
> days, hours, minutes and seconds.
>
> There are ubiquous Java examples using a countdown to y2k but they will
> display the client time only. I can find nothing except unanswered
> requests (from several sites and newsgroups) on how to do this using asp
> technology. I need to use the server time so that no matter what time
> zone the person accessing the page is in they will see an accurate
> countdown until an event such as a live video broadcast. I could use
> multiple clocks or complex code to correct time zone differences to make
> it work but was hoping for something simple (which somtimes is harder to
> build it seems <grin>).
>
> I appreciate ANY response to know if this is even possible using asp...
>
> Thanks,
> Jerry Mounce
> jerry_mounce@m...
>
|
|
 |