PDA

View Full Version : Trigger for Jason's Date Input Calendar



bmurphy
11-12-2007, 03:14 PM
1) Script Title: Jason's Date Input Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

3) Describe problem: Hi, I've been using Jason's Date Input Calendar for some time now and have found it to be an excellent utility. As you may be aware the calendar can be included within an html form with the following code:

<form>

<script>DateInput('orderdate', true, 'DD-MON-YYYY')</script>

<input type="button" onClick="alert(this.form.orderdate.value)" value="Show date value passed">

</form>

What I would like to be able to do is to also include a trigger which is automatically activated when the calendar settings are changed in any way, i.e. a new date is selected by the user. Such a trigger would call a separate javascript function. Could someone please enlighten me as to how this can be achieved?

Thanks,

Brian