alanmoore
Junior Member
Posts: 2
Registered: 4/20/2007
Member Is Offline
|
| posted on 4/20/2007 at 04:31 PM |
|
|
Dynamically set the date of a second on-page calendar from the first on-page calendar
Hi. Just bought Tigra Calendar Pro and it seems good.
I have two on page calendars on one screen - cal1 and cal2. They exist as part of a booking form -- cal1 selects the start, and cal2 the end.
On page load, both cal1 and cal2 have tomorrow selected, and the user cannot select dates before tomorrow. The effect I need is one where the user
selects a date on cal1, and this then changes cal2 so no date before the one selected in cal1 is available.
I figure this requires use of the onclickday and onclickcontrol parameters when declaring CAL_INIT1, and that I can use these to call a function which
will redefine cal2. The question is, how do I redefine and then refresh cal2 without reloading the page?
Any help would be appreciated
|
|
|
tigra
Administrator
Posts: 1960
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/20/2007 at 05:02 PM |
|
|
try migrating the modal mode sample modal_reservation.html to onpage version
submit a support ticket if you want the version without selectbox
|
|
|
alanmoore
Junior Member
Posts: 2
Registered: 4/20/2007
Member Is Offline
|
| posted on 4/23/2007 at 10:54 AM |
|
|
Tried this - no joy.
It seems there are some functions within the main calendar.js file for the modal version that aren't in the onpage version. When I try to use the
onpage version, I get the error 'cal1.TC1Z is not a function'
I've looked through the text file which comes with the modal version, but don't see any answer there either.
Any ideas anybody?
|
|
|
tigra
Administrator
Posts: 1960
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/23/2007 at 01:29 PM |
|
|
Give it a time. you posted your ticket on the weekend. Today you'll either get the solution or status update.
|
|
|