I am writing a web site, and I am using a cool toolbar thing. Its in javascript and I am having a problem.
I put all the toolbar core code into a js file for simple importing into each web site, and everything works perfectly except for one page on one browser. Yep, you guessed it, Internet Explorer!! YAY
Anyway, I get an object expected, very vague, says on line 1 character 1, which is very much wrong, but I was able to chase down the culprit of the bug.
This one web site is written in perl cgi, and the problem is with this line
print "<body link='black' vlink='black' alink='black' onLoad=\"writeMenus()\" onResize=\"if (isNS4) nsResizeHandler()\">";
writeMenus() is a function from the menu code imported at the bottom of my web site:
print '<script language="javascript" src="../easymenus.js"><script>';
print end_html;
Now I know that at the bottom might seem to be my problem right off the bat, and the answer is YES it is my problem. But, my real problem is I cannot place that script line anywhere else on the page without causing an internal server error.. And, on every single other page (not cgi) putting the script code at the bottom works perfectly. And, everything works perfectly in firefox.
Could someone please show me another reason why IE sucks? I am ripping out my hair trying to figure it out.
I put all the toolbar core code into a js file for simple importing into each web site, and everything works perfectly except for one page on one browser. Yep, you guessed it, Internet Explorer!! YAY
Anyway, I get an object expected, very vague, says on line 1 character 1, which is very much wrong, but I was able to chase down the culprit of the bug.
This one web site is written in perl cgi, and the problem is with this line
print "<body link='black' vlink='black' alink='black' onLoad=\"writeMenus()\" onResize=\"if (isNS4) nsResizeHandler()\">";
writeMenus() is a function from the menu code imported at the bottom of my web site:
print '<script language="javascript" src="../easymenus.js"><script>';
print end_html;
Now I know that at the bottom might seem to be my problem right off the bat, and the answer is YES it is my problem. But, my real problem is I cannot place that script line anywhere else on the page without causing an internal server error.. And, on every single other page (not cgi) putting the script code at the bottom works perfectly. And, everything works perfectly in firefox.
Could someone please show me another reason why IE sucks? I am ripping out my hair trying to figure it out.