» Forums
» The DHTML Calendar
» General discussion
» Question regarding Calendar.setDateStatusHandler function
Question regarding Calendar.setDateStatusHandler function
2005/01/20 15:06
Viewed 14117 times
Replies: 1/1

The documentation states that you can highlight specific "special" dates using this function (Calendar.setDateStatusHandler, reference number 4.3.8), although you have to define the CSS class that you return. How do you define a CSS class? Do you have to make an entirely new sheet or do you just add the appropriate style tags to an existing CSSsheet? Or can you define the class in your existing HTML document? Also, the documentation has the following code:

if (dateIsSpecial(y, m, d)) return ' ' special ' ';

is this four single quotes (' ' special ' ') or is it supposed to be two double quotes ("special")?

I am assuming that this is where the special CSS sheet is supposed to be passed, but I am having a tough time making it work. Any help or guidance would be greatly appreciated. Thanks.

Google