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: Date Restictions for reservation calendar
arco
Newbie

Posts: 1
Registered: 7/12/2008
Member Is Offline
posted on 7/12/2008 at 01:37 AM Reply With Quote
Date Restictions for reservation calendar


Hi,

I have a working reservation calendar system as per the demo for the Calendar Pro Date Range Selection Demo but I am unable to restrict the clickable days using the CAL_INIT examples in the documentation eg:

/*
The initial structure demonstrate how to set alowed date.
Only 05 Aug 2004 and 06 Aug 2004 is allowed.
*/
var CAL_INIT1 = {
'formname': 'test_form',
'allowed': {
'date' : ['05-Aug-2004','06-Aug-2004']
},
'dataformat': 'd-M-Y'


};

This dosent have any affect on my calendar. Any suggestions?
View User's Profile View All Posts By User U2U Member
ScotDiddle
Member

Posts: 24
Registered: 11/28/2007
Location: Richmond, VA
Member Is Offline
posted on 7/15/2008 at 10:46 AM Reply With Quote
Reservation System


Arco,

Your code worked for me via cut-n-paste.

I did have to add the new calendar(*) statement, however.

Code:

<script language="JavaScript">
/*
The initial structure demonstrate how to set alowed date.
Only 05 Aug 2004 and 06 Aug 2004 is allowed.
*/
var CAL_INIT1 = {
'formname': 'test_form',
'allowed': {
'date' : ['05-Aug-2004','06-Aug-2004']
},
'dataformat': 'd-M-Y'


};
// First Cal
new calendar(CAL_INIT1, CAL_TPL1);


</script>


Is your problem with restricting date range on a second, subsequent calendar, or with the one shown in your post ?

Scot L. Diddle, Richmomd VA
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
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