| pjdevries |
3rd March 2008 11:01 |
CSS and JavaScript errors in FireFox
I am using FireFox 2.0.0.12 as my primary browser and I am experiencing a lot of warnings and occasional errors when running ISPConfig. I don't have those warnings and errors when running other web applications.
The warnings mostly concern css related messages, like: - Error in parsing valu for property 'border'. Declaration dropped.
- Unexpected end of file while searching for closing } of invalid rule set.
- Unknown property 'sctollbar-arrow-color'. Declaration dropped.
etc.
Many times an error occurs which prevents the page from being displayed properly. More specifically the tree menu is not displayed at all. The error message is: linkFarbe is not defined and after clearing the FireFox messages, it is usually the second message after the warning Error in parsing valu for property 'border'. Declaration dropped. The error seems to triggered by a line in JavaScript function maleMenu()
Code:
function maleMenu() {
var menuFrame = self.frames["menuFrame"];
ausgabeFrame = menuFrame.window.document;
ausgabeFrame.open("text/html");
<!-- Bitte die folgende Zeile als Copyright-Hinweis nicht loeschen //-->
ausgabeFrame.write("<HTML>\n<HEAD>\n\n");
ausgabeFrame.write("<STYLE>\n<!--\nA {text-decoration: none}\nA {color: " + linkFarbe + "}\nA:hover {color: " + aLinkFarbe + "}\nBODY{ scrollbar-arrow-color: white\;\nscrollbar-base-color: #E0E0E0 }\n-->\n</STYLE>\n");
ausgabeFrame.write("</HEAD>\n<BODY BGCOLOR=\"" + hintergrundFarbe + "\" BACKGROUND=\"" + hintergrundBild + "\" LINK=\"" + linkFarbe + "\" ALINK=\"" + aLinkFarbe + "\" VLINK=\"" + bLinkFarbe + "\" topmargin=\"10\" leftmargin=\"10\">\n");
ausgabeFrame.write("<FONT FACE=\"" + MenuSchrift + "\" SIZE=" + MenuSchriftGroesse + " COLOR=\"" + textFarbe + "\">\n");
ausgabeFrame.write(prefixHTML);
...
...
...
}
Is this a known problem and is there a solution for it?
|