Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q504

irt.org | About | Feedback | 3628 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q504

Sent by
use SSI and forms to pass server date/time to Javascript on February 25, 2002 at 18:30:11:

Comments:
You can use Server Side Includes to stuff hidden form variables with the server date and time; then use Javascript to work with the values.

Example code:
<pre>

<form name="server_time_local">
<input type="hidden" name="year" value="">
</form>

<script language="JavaScript">

var year, month, day, hour, minute

t_form = document.forms["server_time_local"];

year = Number(t_form.year.value);
month = Number(t_form.month.value);
day = Number(t_form.day.value);
hour = Number(t_form.hour.value);
minute = Number(t_form.minute.value);

}

</pre>


Other feedback on 'irt.org FAQ Knowledge Base Q504' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.