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: 2049
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 1920 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
ryknow23
Newbie

Posts: 1
Registered: 2/9/2010
Member Is Offline
posted on 2/9/2010 at 05:42 PM Reply With Quote
Put Focus On Input Box After Date Is Selected And Calendar Closes


I have a page (http://www.omnianesthesia.com/adminx/credCRNAEx.asp) where I have integrated the Tigra calendar into a list of names with expiration dates for licenses and certifications that anesthesia people have to renew in order to maintain their licenses and certificates. I have some javascript code that allows me to update multiple records. It only updates the records that have been changed without updating all the records.

The problem occurs because the code I have does not recognize that the input has changed when the calendar is used to pick a date. If I just input a date by typing it works fine but if I use the calendar it does not. Is there a way to focus on the text box once the date has been selected so that either the onChange event or the onFocus event can be used in the input box to get the code to recognize the change? Or is there another solution? Any help would be appreciated.

Thanks
Rick
View User's Profile View All Posts By User U2U Member
superdataman
Newbie

Posts: 1
Registered: 6/20/2010
Member Is Offline
posted on 6/20/2010 at 06:08 AM Reply With Quote
Setting the Focus to the Date Field after the Date is Selected


I am using Tigra Calendar v4.0.3. I needed a way to set the focus back to the form field that Tigra Calendar has just placed a date in. After reading many posts, I came up with a simple solution:
-------------------------------------
Step 1:
---------
In the calendar_*.js file (mine is "calendar_us.js"), I added the following as the last line of the "f_tcalHide" function:

setFormFieldFocus(this.e_input);

-------------------------------------
Step 2:
---------
In the HEAD section of my Web page I added:
<script type="text/javascript">
function setFormFieldFocus(FormElement)
{
FormElement.focus();
}
</script>

This sets the focus to the form field that Tigra Calendar has just placed a date in.
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