Board Logo

dynamically change attributes
trash-box - 8/12/2006 at 11:43 AM

is it possible to dynamically change attributes of a calendar. i tried the following one, but it doesn't work...

Code:
CAL_INIT = {
'dataformat' : 'Y-m-d',
...
};

CAL_TPL = {
...
};

var cal = new calendar(CAL_INIT, CAL_TPL);

function myFunction() {
cal.mindate = '2006-08-01';
cal.showcal();
}


so when i call myFunction by clicking a button, only the calendar will be shown, but ignores the mindate...
any ideas?

thx


tigra - 9/28/2007 at 09:30 PM

look for text file in modal mode directory inside the distribution package. It explains properties and methods available for setting up calendar's properties after its initialization.


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