Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allowing Users to select Time

R5 - Web Applications

Allowing Users to select Time

by  NiteLink  Posted    (Edited  )
Downloaded Time Picker Applet from:
http://java.arcadevillage.com/applets/timepica.htm

Applet Parameters:
Code:
<PARAM NAME="hmin" VALUE="8">
<PARAM NAME="Field" VALUE="ApptTimeStart">
<PARAM NAME="nowatch" VALUE="">
<PARAM NAME="ampm" VALUE="y">
<PARAM NAME="multi" VALUE="o">
<PARAM NAME="hmax" VALUE="20">
<PARAM NAME="h1" VALUE="8">
<PARAM NAME="h2" VALUE="20">
<PARAM NAME="format" VALUE="H:M">
<PARAM NAME="jvf" VALUE="selectTimeInput()">
</APPLET>

HTML Attributes:
"MAYSCRIPT"

JS Header:
Code:
function selectTimeInput() {
var f = document.forms[0];
f.ApptTimeStart.value = document.timepicker.stringFormat('H:M P');
f.ApptTimeEnd.value = document.timepicker.stringFormat('h:m p');
}

ID of the applet is timepicker, thus, document.timepicker.stringFormat.

NB. The function is for updating 2 fields, ApptTimeStart & ApptTimeEnd.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top