Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Autosubmit
Combat Medic
Newbie

Posts: 1
Registered: 1/3/2003
Member Is Offline
posted on 1/3/2003 at 04:42 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
JFitz
Newbie

Posts: 1
Registered: 12/1/2003
Member Is Offline
posted on 12/1/2003 at 08:47 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 1912
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 12/10/2003 at 10:15 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
careyb
Junior Member

Posts: 3
Registered: 6/3/2004
Member Is Offline
posted on 8/25/2006 at 12:44 PM Reply With Quote

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'?
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004