Board Logo

Date restrictions
yann - 8/1/2005 at 11:51 AM

Hello,

Is there a way to forbid a list of days AND every sundays ?

Thanks


tigra - 8/1/2005 at 06:31 PM

yes, that's possible with Tigra Calendar PRO.


yann - 8/2/2005 at 08:52 AM

Could you please tell me how ?

I can forbid dates :

var CAL_INIT2 = {
...
'dataformat' : 'd/m/Y',
'forbidden': {
'date':['01/01/2006','04/07/2005']
}
...
};

I can forbid day of week :

var CAL_INIT2 = {
...
'dataformat' : 'd/m/Y',
'forbidden': {
'weekday':['Sat','Sun']
}
...
};

But how can I forbid BOTH ?

Thanks


tigra - 8/2/2005 at 06:07 PM

'forbidden': {
'date':['01/01/2006','04/07/2005'],
'weekday':['Sat','Sun']
}

Let us know if that doesn't work for you. Alternatively you can allow Mon-Fri and forbid dates.


yann - 8/3/2005 at 09:28 AM

It's still does not work :

// Every saturdays & sundays are allowed (except those which are days off)
var CAL_INIT1 = {
'formname' : 'test_form',
'forbidden': {
'date':['01/01/2006','03/01/2006','05/01/2006','07/01/2006'],
'weekday':['Sat','Sun']
},
'selected' : '01/01/2006',
'dataformat' : 'd/m/Y'
};

// Only saturdays & sundays are forbidden (days off are allowed)
var CAL_INIT2 = {
'formname' : 'test_form',
'allowed': {
'weekday':['Mon', 'Tue', 'Wen', 'Thu', 'Fri']
},
'forbidden': {
'date':['01/01/2006','03/01/2006','05/01/2006','07/01/2006']
},
'selected': '01/01/2006',
'dataformat' : 'd/m/Y'
};


tigra - 8/4/2005 at 01:14 AM

ok, submit a support ticket attaching all the files in the zip package. We'll take a look at them and will return working configuration.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/