Popup Calendar 1.0 - DHTML Lab | 12 | WebReference

Popup Calendar 1.0 - DHTML Lab | 12


Logo

Pop-up Calendar 1.0
The Calendar Attributes, Part 4



 
input_element_id    input_element_id = "myVisibleInputElementID"
input_element_id = "myHiddenInputElementID"
input_element_id = "myTextareaElementID"

Specifies a text input ( <input type="text"> ), hidden text input ( <input type="hidden"> ), or textarea ( <textarea> ) element for displaying or storing a user-selected date.

Make sure the parameter value is identical to your formelement's unique id attribute. If your input HTML is:

<input type="text" id="flightdate">

the parameter should be:

input_element_id = "flightdate"

The script does not provide a default input_element_id value.

Usage Suggestion:
Use only if you need the date displayed for the user or you need to pass the information to your server via a form.

 
click_element_id   click_element_id = "myCalendarImageID"
click_element_id = "myAnyHTMLElementID"

Specifies an HTML element, which when clicked will cause the calendar to appear. Usually this is a calendar image, but it can be any element.

Make sure the parameter value is identical to your element's unique id attribute. If your click element HTML is:

<img src="dlcalendar_3.gif" id="flightdatecalendar">

the parameter should be:

click_element_id = "flightdatecalendar"

If your click element HTML is:

<span id="flightdatecalendar">Select Flight Date</span">

the parameter should be:

click_element_id = "flightdatecalendar"

The script does not provide a default click_element_id value.

Usage Suggestion:
You must use this parameter otherwise no calendar can be displayed.

 
tool_tip   tool_tip = "Click for calendar"
tool_tip = "Choose flight date"

Specifies the text of a popup tool tip to appear when the user hovers over the "click element" that launches the calendar

The script provides a default tool_tip value of "Click for Calendar".

On the next page: specifying colors and other styling for the calendar display.



Send a comment or suggestion to Peter Belesis

Created: July 20, 2004
Revised: July 20, 2004

URL: http://webreference.com/dhtml/column67/8.html