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: 2 dates on one form how can I update 2nd when first changes?
dbg
Newbie

Posts: 1
Registered: 10/2/2009
Location: London
Member Is Offline
posted on 10/2/2009 at 11:00 AM Reply With Quote
2 dates on one form how can I update 2nd when first changes?


Hello
I have managed to dynamically generate two date calendars on a single form (see script below) What I want to do is have the 2nd date copy the 1st date whenever the 1st date is updated.

I initially set the dates with PHP variables.

Excerpt from my script that is run from body onload call

/*Needs form with input id=date1 contained in container div and input date2 in container1 div
*/
var N_CALNUM = 1;
function f_createContent() {
var e_div = f_getElement('container');
e_div.innerHTML += '<img title="Open Calendar" class="tcalIcon" onclick="A_TCALS['myCalID' + N_CALNUM + ''].f_toggle()" id="tcalico_myCalID' + N_CALNUM + '" src="img/cal.gif"/><br />';
new tcal ({
// input name ID
'controlname': 'date1',
// set unique ID to identify the elements
'id': 'myCalID' + N_CALNUM
});
N_CALNUM++;
var e_div1 = f_getElement('container1');
e_div1.innerHTML += '<img title="Open Calendar" class="tcalIcon" onclick="A_TCALS['myCalID' + N_CALNUM + ''].f_toggle()" id="tcalico_myCalID' + N_CALNUM + '" src="img/cal.gif"/><br />';
new tcal ({
// input name ID
'controlname': 'date2',
// set unique ID to identify the elements
'id': 'myCalID' + N_CALNUM
});
}
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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