|
|
||||||||||||||||||||||||||||||||||||||||||
JS DTPicker |
||||||||||||||||||||||||||||||||||||||||||
|
Overview The Date-Time Picker is an very widely used ActiveX control that allows the user to select a particular date from a drop-down calendar. The selected date is shown in a drop-down list box.
DTPicker is an attempt to recreate the same control using pure JavaScript. It aims to provide the functionality of a Calendar control on a Web Page. The typical use of this control would be in HTML forms that are used to collect data which is then posted to the server.
|
||||||||||||||||||||||||||||||||||||||||||
DECEMBER 2002
Today: 21/12/2002 |
F.A.Qs
Which browsers support JS DTPicker?
Currently only Internet Explorer supports the DTPicker
component.
How can my server script (ASP, JSP, etc.) read
the date set by the user?
The DTPicker can be included inside
a FORM tag just like any other form element. The second argument passed
while creating the component (i.e. cboDtPicker1)
specifies the name assigned to the SELECT element in the FORM tag. Its
value (when the form is submitted) will contain the selected date in the
format set in the DTPicker.
Can I use client-side scripting to read the values set?
Both JavaScript and VBScript can be used to access the DTPicker.
It is possible to use the control name (i.e.
dtPickerObj) and then set/read the properties using the methods
provided. It is also possible to access the SELECT element that the component
consists of through the name cboDtPicker1
specified while creating the component.