Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the server date
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00455560
Message ID:
00455647
Vues:
26
>>On my contacts page I want to display the server time so that people can know if it's office hours (we don't do 24/7!) where we are.
>>
>>I have a great script to dynamically show the date and time but as it's javascript it only shows the users local time - which they should know!
>>
>>How can I give javascript the server time?
>>
>>Sarah
>
>Sarah,
>If you're using IIS and ASP, wrap the javascript code in a < % % > and have the server process it.
>
>HTH.
PHP and Perl are my ISP's preference. I'm about to change ISP but the new one is no better. Still PHP might not have much of an overhead so I can try that. Your answer, though, confirms that javascript can't do it natively.

Thanks
Sarah
Sarah King
pcpropertymanager.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform