blekm
Junior Member
Posts: 5
Registered: 4/17/2007
Member Is Offline
|
| posted on 4/17/2007 at 02:15 PM |
|
|
1. set available only two years 2. how to riset the current day
1) is there a way to block the year? Actually I can go to every year: 2007, 2008, 2009, 2010. Is there a way to set available only the current year
and the next year? 2007 and 2008. I don't won't to see other years...
2) in which way I can set the date of the calendar to the actually day? Something like this: if you select a day in August, I want to set the date to
current day...
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/17/2007 at 03:52 PM |
|
|
1. With Tigra Calendar PRO you have multiple options to black-out dates. For example you can set 01/01/2007 as earliest allowed date and 12/31/2007 as
latest allowed date. Another option is using forbidden/year or allowed/year options (see Calendar Initial Setting Structure section of the product
documentation)
2. when you change months the calendar doesn't change the selection unless you click on a date. The script customization is required to change that
behavior.
|
|
|
blekm
Junior Member
Posts: 5
Registered: 4/17/2007
Member Is Offline
|
| posted on 4/18/2007 at 08:35 AM |
|
|
(I'm using Tigra Calendar Pro)
1) in which way I can set 01/01/2007 like earliest date and 31/12/2008 like latest allowed date?...
2) when i change year (maybe i select 2009) and then i click 4 february 2009, i want to control this date and set initial date.. how I do this?
For me it's most important know how to set the initial date after a date selected in 2009... ;-) or under particul condition how to set on calendar
the initial date.
|
|
|
blekm
Junior Member
Posts: 5
Registered: 4/17/2007
Member Is Offline
|
| posted on 4/18/2007 at 11:02 AM |
|
|
how to block the year? I've try in different way, but I cannot resolve...
see attachment.
blekm has attached this image:
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/18/2007 at 09:40 PM |
|
|
in calendar's configuration structure
'mindate': '01/01/2007',
'maxdate': '12/31/2007',
this will only show 2007 in year selector and also prevents from selecting any dates in other years
in the parameters use the date format you defined for the calendar.
|
|
|
blekm
Junior Member
Posts: 5
Registered: 4/17/2007
Member Is Offline
|
| posted on 4/19/2007 at 07:40 AM |
|
|
I've resolved!! This is my calendar structure, block Monday, 12/13/14 April 2007 and available only date from 1 January 2007 to 31 December 2008
var CAL_INIT1 = {
'formname' : 'test_form',
'controlname' : 'controlname1',
'forbidden': {
'date' : ['13-04-2007','14-04-2007','12-04-2007'],
'weekday' : ['Mon'],
},
'mindate': '01-01-2007',
'maxdate': '12-31-2008',
'dataformat' : 'd-m-Y'
};
|
|
|