Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Clock
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Clock

 Post Reply Post Reply Page  <123>
Author
genmud View Drop Down
Groupie
Groupie
Avatar

Joined: 05 April 2003
Location: United States
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote genmud Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 2:47pm
ok, i have this clock, from dynamic drive... it has the time on the client... i just want it to display it on the server, so i need to know how to get the Hours, Minutes and Seconds off the server in ASP. It is really simple(i think) but i know just about zero in ASPvb
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 2:53pm
you cannot port that Dynamic drvie script from client side (javascript) to server side (asp).. once the server serves the HTML, the connection is lost between both, hence you can have a "dynamic server clock"
Contribute to the working anarchy we fondly call the Internet
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 2:54pm

hour(now())
minute(now())
second(now())

Back to Top
genmud View Drop Down
Groupie
Groupie
Avatar

Joined: 05 April 2003
Location: United States
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote genmud Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 2:59pm

that definatly wont work, but thanks...

you can make it dynamic, because i said! no, actually you can, because the time adds the numbers off the person's initial time on their clock and just adds numbers, it is possible, and i will eventually work... i just need to know how to get like the Hour and Minutes and Seconds off the server, im not asking anything tooo hard.



Edited by genmud
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 3:00pm
neither will anything else.....
Contribute to the working anarchy we fondly call the Internet
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 3:05pm
why don't you just use straight up asp and put in <%= now()%> in your script?
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 3:21pm

wow, i must be typing in "invisible font" today, lol

he's obviosuly trying to do something like this:
http://www.dynamicdrive.com/dynamicindex6/lcdclock.htm

but show the running server time, not the client's time... which "isn't possible" in server side script since once the page content gets served to the client, bam, the connection between the two computers is over with

Contribute to the working anarchy we fondly call the Internet
Back to Top
genmud View Drop Down
Groupie
Groupie
Avatar

Joined: 05 April 2003
Location: United States
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote genmud Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2003 at 4:05pm
you are wrong... if you can format the thing so that you can get the Hours, Minutes and Seconds i guarentee that i could get it!
Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.