Combat Medic
Newbie
Posts: 1
Registered: 1/3/2003
Member Is Offline
|
| posted on 1/3/2003 at 04:42 PM |
|
|
Autosubmit
I am trying to get the calendar control to autosubmit the form that it came from after a date has been selected. Does anyone know how I would go
about this?
Thanks
Mike
|
|
|
JFitz
Newbie
Posts: 1
Registered: 12/1/2003
Member Is Offline
|
| posted on 12/1/2003 at 08:47 PM |
|
|
I am also looking to have the calling form autosubmit. I tried using a Javascript onChange event on the date text field but it's not recognized.
I have also tried an onFocus to no avail.
|
|
|
tigra
Administrator
Posts: 1912
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 12/10/2003 at 10:15 PM |
|
|
Ok, here is how you can call custom javascript code when user selects the date:
1. open calendar?.js file, define cal_onselect?() function
2. Assign the function you've created to the calendar object in the constructor
3. Put a call to the this method in calendar.html (set_datetime function)
Here is the file that demonstrates that:
Attachment: calendar_with_onselect_handler.zip (19.94kb)
This file has been downloaded 811 times
|
|
|
careyb
Junior Member
Posts: 3
Registered: 6/3/2004
Member Is Offline
|
| posted on 8/25/2006 at 12:44 PM |
|
|
| Quote: | Originally posted by tigra
Ok, here is how you can call custom javascript code when user selects the date:
1. open calendar?.js file, define cal_onselect?() function
2. Assign the function you've created to the calendar object in the constructor
3. Put a call to the this method in calendar.html (set_datetime function)
Here is the file that demonstrates that: |
How could you change the function to use that for any calling form, using a variable for the formname instead of 'tstest'?
|
|
|