The example 02_days_coloring shows how to create a different background for weekend days, by using the following code
if (date.getDay()==0 || date.getDay()==6)
and applying the following styling
This works fine in the sample provided, but if I attempt to add the same code to a scheduler using the terrace css, the whole display breaks.
Do I need to use different code if I am using terrace?
It seems to be because the code in the sample seems to be missing a ;
I corrected the code that I had copied from 02_days_coloring and it is no longer causing an error.
You might wish to check line 32 of 02_days_coloring.html in your samples.
what exactly is wrong with the sample?
the line 32 is
which is a regular initialization of the scheduler
I’ve also tried this example with the terrace skin(just replaced scheduler.css link with dhtmlxscheduler_dhx_terrace js/css), and everything seemed correct
Yes, the missing ; was causing my problem.
For some reason, it didn’t throw an error in IE9 but it did throw an error in Firefox.