|
Popup Calendar Date Capture
v1.0 - June 15, 2006
popupcalendardatecapture.zip (3k)
Popup Calendar Date Capture is a client-side script that allows users to enter a date value
into a form field by selecting it from a popup calendar.
The calendar allows users to navigate then select any date they require.
The date value can be displayed in many different formats.
Demonstration
Installation
1. Upload the file popupcalendardatecapture.js
then link it to your document as a JavaScript include file.
Add the following code between the <head> & </head> tags:
<script language="JavaScript" src="popupcalendardatecapture.js"></script>
2. Add a text input field and a button to your document.
Add the following code to the body of your document:
<form name="form_name">
<input name="input_name" type="text" size="30">
<input type="button"
onclick="javascript:popupCalendarDateCapture('form_name','input_name');">
</form>
Documentation
Function: popupCalendarDateCapture()
Description: This function is used to open the Popup Calendar.
There are 2 arguments used with this function
which specify the name of the form and its element where the date value will be sent to.
popupCalendarDateCapture(FORMNAME,INPUTFIELDNAME)
| FORMNAME |
A string that specifies the name of the form that contains the text field. |
| INPUTFIELDNAME |
A string that specifies the name of the text field where the date value will be displayed. |
Source Code
popupcalendardatecapture.js (10k)
Notes
- Make sure that the FORMNAME and INPUTFIELDNAME arguments specified
when calling the popupCalendarDateCapture() function match the names
used to specify the form and the input field within your document.
Popup Calendar Date Capture by Lloyd Hassell
Website: lloydhassell.brinkster.net
Email: lloydhassell@hotmail.com
|