I work with datechooser class [url]http://yellow5.us/projects/datechooser/
I want to change allowed days after initialization of the calendar
initialization (head)
[code]
function WindowLoad()
{
var objEarlyDateEx3 = new Date();
objEarlyDateEx3.setMonth(objEarlyDateEx3.getMonth());
var objLateDateEx3 = new Date();
objLateDateEx3.setMonth(objLateDateEx3.getMonth() + 1);
ndExample3 = document.getElementById(‘datechooserex3’);
ndExample3.DateChooser = new DateChooser();
ndExample3.DateChooser.setCloseTime(400);
ndExample3.DateChooser.setYOffset(5);
ndExample3.DateChooser.setUpdateField([‘monthselectex3’, ‘dayselectex3’, ‘yearselectex3’], [‘m’, ‘d’, ‘Y’]);
ndExample3.DateChooser.setIcon(‘datechooser.png’, ‘monthselectex3’, false, ‘Click for example 3’);
return true;
}
events.add(window, ‘load’, WindowLoad);
so in body :
[code]
<p id=”datechooserex3″> …. </p>
<script>
ndExample3.DateChooser.setAllowedDays([‘2’, ‘3’, ‘4’]);
</script>
but allowed days doesn’t change …