I'm trying to find a way to black out dates and/or specific days in the DHTML Calendar, version 0.9.2. Unfortunately I know jack and squat about javascript. I've found the section that deals with disabling passed days but apparently it's not a simple "on or off" switch.
/**
* Allows customization of what dates are enabled. The "unaryFunction"
* parameter must be a function object that receives the date (as a JS Date
* object) and returns a boolean value. If the returned value is true then
* the passed date will be marked as disabled.
*/
Calendar.prototype.setDisabledHandler = function (unaryFunction) {
this.checkDisabled = unaryFunction;
};
I noticed a reference to rhuk in the calendar.js and thought maybe our man Andy was invloved?
// $Id: calendar.js 47 2005-09-15 02:55:27Z rhuk $
At any rate, I'm really trying to find a way to only have specific days of the week blacked out but I could possible settle for disabling passed days.
Does anyone here have any experience with this? I've looked pretty much everywhere imaginable and haven't found anything that works.