Does it work correctly if you comment out all custom css classes which are being assigned?
Also: Is it intendet that classes I add to the month_view via Is also applied in year_view?
Yes, it certainly works this way for now. If you wish more control over it you can try the following:
scheduler.templates.month_date_class = function (date, today) {
if(scheduler.getState().mode == "month") {
if (date.getDay() === 0 || date.getDay() === 6) { return 'weekendMonth';}
else {return '';}
}
};
Best regards,
Ilya
see attached.
I had to strip some external script names and such.
Data is received and written from/to external asp-files. So its not working at all as it is.
I use some external JS-library (home brew) but functions therein should not effect the view as it is mostly stuff like addEvent and onDomload (cross browser event handling).
The whole page is heavily work in progress, so please ignore the untidyness
sorry, not available
I can’t figure out what (apart from CSS, which is not to blame here) could cause the year_view to brake. And in IE only, too…
I hope you have some idea.
The actual page is in ASP to get some data for select-boxes and such.
In the included asp-library a comment is written to the pages source code stating the sql-call and something else.
The problem in my case arose from the fact that the doctype declaration has to be the first element on a webpage. Obviously IE regards some comment as element as well.
Long story short:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Just some comment -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
yealds the expected result, while
<!-- Just some comment -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
results in the display error in IE (testet with 6 and 8)
I attached a very simple demonstration file for you to try out.
Please note: i do not regard this a bug in the scheduler
Still, it still works in the other views even with the doctype-quirk, so maybe you can find a solution to make it more robust.
One more unrelated note:
To identify elements you largely use the name-Attribute.
e.g.
“name” is only valid in form-Elements in some doctypes.
Would be great if you could make the transition to the more plausible (IMHO) id-attribute in some future version.