Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q504, February 25, 2002 at 18:30:11:

You are here: 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

©2018 Martin Webb