HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   CSS and JavaScript errors in FireFox (http://www.howtoforge.com/forums/showthread.php?t=20967)

pjdevries 3rd March 2008 12: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?

till 4th March 2008 10:22

I'am using firefox too and I did not notice any javascript errors yet. I will have a lokk in which cases this error may occur.

pjdevries 4th March 2008 11:49

Very much appreciated. Chances are it has something to do with my FireFox configuration and not with ISPConfig, but I don't know where to start looking.

pjdevries 4th March 2008 12:05

For your information: I just disabled all the FireFox add-ons but the problem persists.

falko 4th March 2008 19:49

You can install Firebug ( http://www.getfirebug.com/ ) and try to find out what error it is throwing at you.

pjdevries 4th March 2008 20:41

I use Firebug a lot to debug my html and css code, but how can it help me in finding more warnings or erros then the ones I reported in my first post?

Firebug reports the same error as the one I see in the standard Firefox error console: linkFarbe is not defined. The complete Firebug message is this:

inhalt_tree.php (line 34)

linkFarbe is not defined
maleMenu()inhalt_tree.php (line 34)
neumalen()inhalt_tree.php (line 114)
onresize(resize )inhalt_tree.php (line 1)
ausgabeFrame.write("<STYLE>\n<!--\nA {text-decoration: none}\nA {color: ...
Is that of any help?

falko 5th March 2008 16:19

I'm not sure where these errors are coming from, but maybe ISPConfig isn't installed properly because your disk is full? What's the output of
Code:

df -h
?

pjdevries 5th March 2008 16:34

It may have something to do with ISPConfig being not properly installed, but that has nothing to do with available diskspace. The output of df -h:
Filesystem Size Used Avail Use% Mounted on
simfs 100G 5.0G 96G 5% /
tmpfs 1012M 0 1012M 0% /lib/init/rw
tmpfs 1012M 4.0K 1012M 1% /dev/shm
More diskspace than money :D

Two extra bits of information:
  • I have the same problem on two different machines, running two different editions of Windows Vista Ultimate (one 32 bit and one 64 bit) but the same version of Firefox.
  • Last weekend I updated ISPConfig from version 2.2.14 to 2.2.21. The problem was already there before the update and is still there after the update.

falko 6th March 2008 19:38

I don't have a Vista system, and I've never seen that behaviour on other operating systems. Do you have an XP or Linux machine to test this? Unlikely, but maybe it's a Vista problem?

pjdevries 6th March 2008 21:25

I'll try it on both an XP and a Linux system tomorrow and let you know what happens.


All times are GMT +2. The time now is 04:05.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.