I am seeing quiet a few Javascript errors and my Milonoc menu is not the correct width in Netscape.
Please review site: http://www.strategictechresource.com
I am slowly transitioning to CSS driven pages so I'm sure this may be part of the issue. Thoughts and help appreciated.
Rip
PS I am also seeing this on some pages at the top:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
Milonic and CSS Web pages / Netscape
You are down-level on the menu version. Update to version 5.26 and that solves the problem. Also, ie 5.5 is getting 2 javascript errors to do with
Ruth
Code: Select all
<SCRIPT language=JavaScript type=text/javascript>writeMaskedAddr(1,'ORTG general inquiry','footerLink');</SCRIPT>
As Ruth correctly mentioned, you're 25 versions down. Get the latest at http://milonic.com/. Also see http://milonic.com/menuvinfo.php for the changelog info (you'll find all the fixes listed there, many to do with Netscape-type browsers). Finally, go to http://milonic.com/forum/viewtopic.php?t=3108 and click on "Watch this topic". You'll get an e-mail whenever a new release is posted.
John
-
- Super Advanced
- Posts: 50
- Joined: Tue Jan 21, 2003 4:15 am
- Location: Foothills of The Great Smoky Mtns.
Fixed bu info FYI
Greetings:
Upgrading the menu source code fixed the menu width issue in Netscape. Also FYI there is no other javascript on any of these pages or on this entire site. All these pages are built using almost 100% CSS.
I was also building the pages Xhtml compliant too. I have now removed:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> from the initial line on each page and of course it is now not appearing.
One additional item of interest I have noticed is that in IE the topLogo DIV tag is NOT appearing down 10 px as it should but is in Netscape. When I remove Milonic this issue goes away. My home page code below:
THX to everyone for your help.
Rip
------------------------------------------------
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!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"><!-- InstanceBegin template="/Templates/topMain.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Strategic Technical Resource, Inc. "Keeping your world online and connected!"</title>
<!-- InstanceEndEditable -->
<link href="Styles/topMain.css" rel="stylesheet" type="text/css" />
<SCRIPT language=JavaScript src="/js/topMainMenu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/js/topMainMenu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/js/topMainMenu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/js/topMainMenu/menu_data.js" type=text/javascript></SCRIPT>
</head>
<body>
<div id="topMain"></div>
<div id="bodyMain"><!-- InstanceBeginEditable name="mainBodyCopy" -->
<table width="525" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><p>Welcome to the last solution you'll need for your company's computer
and networking requirements.</p>
<p><img src="images/keyboard.jpg" width="173" height="216" /> <img src="images/worriedFace.jpg" width="138" height="243" /><img src="images/handshake.jpg" width="312" height="176" /></p>
<p><img src="images/briefcase.jpg" width="264" height="179" />More coming
soon...</p></td>
</tr>
</table>
<!-- InstanceEndEditable --></div>
<div id="footerMain">
<table width="525" border="0" cellspacing="0" cellpadding="20">
<tr>
<td align="center"><!-- #BeginLibraryItem "/Library/footer.lbi" --><p class="footer">Phone: (865) 257-1751 Email:
<script language="JavaScript" type="text/javascript">writeMaskedAddr(1,'ORTG general inquiry','footerLink');</script>
<a href="mailto:info@strategictechresource.com">info@strategictechresource.com</a><br />
Copyright © 2004 Strategic Technical Resource, Inc. All rights reserved<br />
<a href="corporate/privacy.html" class="footerLink">Privacy Statement</a> |
<script language="JavaScript" type="text/javascript">writeMaskedAddr(0,'ORTG Site Feedback','footerLink');</script>
| <a href="/corporate/terms_of_use.html" class="footerLink">Terms of Use</a></p>
<p class="footer">Web site designed, hosted, and managed by <a href="http://www.abacusarts.com" target="abacus" class="footerLink">Abacus
Arts, Inc.</a> <br />
The <font color="#FF0000">Power<sup>3</sup></font> of Media<sup>™</sup></p>
<!-- #EndLibraryItem --></td>
</tr>
</table>
</div>
</body>
<!-- InstanceEnd --></html>
Upgrading the menu source code fixed the menu width issue in Netscape. Also FYI there is no other javascript on any of these pages or on this entire site. All these pages are built using almost 100% CSS.
I was also building the pages Xhtml compliant too. I have now removed:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> from the initial line on each page and of course it is now not appearing.
One additional item of interest I have noticed is that in IE the topLogo DIV tag is NOT appearing down 10 px as it should but is in Netscape. When I remove Milonic this issue goes away. My home page code below:
THX to everyone for your help.
Rip
------------------------------------------------
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!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"><!-- InstanceBegin template="/Templates/topMain.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Strategic Technical Resource, Inc. "Keeping your world online and connected!"</title>
<!-- InstanceEndEditable -->
<link href="Styles/topMain.css" rel="stylesheet" type="text/css" />
<SCRIPT language=JavaScript src="/js/topMainMenu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/js/topMainMenu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/js/topMainMenu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/js/topMainMenu/menu_data.js" type=text/javascript></SCRIPT>
</head>
<body>
<div id="topMain"></div>
<div id="bodyMain"><!-- InstanceBeginEditable name="mainBodyCopy" -->
<table width="525" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><p>Welcome to the last solution you'll need for your company's computer
and networking requirements.</p>
<p><img src="images/keyboard.jpg" width="173" height="216" /> <img src="images/worriedFace.jpg" width="138" height="243" /><img src="images/handshake.jpg" width="312" height="176" /></p>
<p><img src="images/briefcase.jpg" width="264" height="179" />More coming
soon...</p></td>
</tr>
</table>
<!-- InstanceEndEditable --></div>
<div id="footerMain">
<table width="525" border="0" cellspacing="0" cellpadding="20">
<tr>
<td align="center"><!-- #BeginLibraryItem "/Library/footer.lbi" --><p class="footer">Phone: (865) 257-1751 Email:
<script language="JavaScript" type="text/javascript">writeMaskedAddr(1,'ORTG general inquiry','footerLink');</script>
<a href="mailto:info@strategictechresource.com">info@strategictechresource.com</a><br />
Copyright © 2004 Strategic Technical Resource, Inc. All rights reserved<br />
<a href="corporate/privacy.html" class="footerLink">Privacy Statement</a> |
<script language="JavaScript" type="text/javascript">writeMaskedAddr(0,'ORTG Site Feedback','footerLink');</script>
| <a href="/corporate/terms_of_use.html" class="footerLink">Terms of Use</a></p>
<p class="footer">Web site designed, hosted, and managed by <a href="http://www.abacusarts.com" target="abacus" class="footerLink">Abacus
Arts, Inc.</a> <br />
The <font color="#FF0000">Power<sup>3</sup></font> of Media<sup>™</sup></p>
<!-- #EndLibraryItem --></td>
</tr>
</table>
</div>
</body>
<!-- InstanceEnd --></html>
Just for some info. You have css coding body{margin:0px and then #topMain {margin:10px and in the topMain you have the div height at 200 which is the height of the image. Netscape is reading that margin:10px and is putting it at the body section, not in the div, IE is reading it, but also reading the margin:0px in the body and is then ignoring it. Maybe body tag codes have a higher standing in IE, I don't know. I just thought I'd let you know what's happening. I don't know what the menu has to do with it, though it is made up of divs.
Ruth
Well, I posted the code which is giving me the error in ie5.5, which doesn't have to do with the menu. The error is thrown twice, once for each time that code appears and isAlso FYI there is no other javascript on any of these pages or on this entire site.
Code: Select all
Line 34
char 1
error: object expected
Line 38
char 1
error: object expected
Hi Rip,
I'll jump in here too...
The lines in the error messages Ruth reported are accurate, and are indeed where the phantom javascript is: lines 34 and 38 of the code you posted are inline calls to a javascript function, writeMaskedAddr(), that does not exist (hence the "object expected" error). Specifically, the lines are:
and
Perhaps they're left over from an earlier incarnation of the page? Might be good to remove those two lines, which will at least eliminate the two remaining js errors.
Hope that helps,
Kevin
I'll jump in here too...
I think the confusion is that, while it's true that you don't load any other javascript from .js source files, you do in fact have other javascript in your page. The difference is that the offending lines are inline javascript code, rather than being loaded from an external source file.Ruth wrote:Well, I posted the code which is giving me the error in ie5.5, which doesn't have to do with the menu. The error is thrown twice, once for each time that code appears and isAlso FYI there is no other javascript on any of these pages or on this entire site.Code: Select all
Line 34 char 1 error: object expected Line 38 char 1 error: object expected
The lines in the error messages Ruth reported are accurate, and are indeed where the phantom javascript is: lines 34 and 38 of the code you posted are inline calls to a javascript function, writeMaskedAddr(), that does not exist (hence the "object expected" error). Specifically, the lines are:
Code: Select all
<script language="JavaScript" type="text/javascript">writeMaskedAddr(1,'ORTG general inquiry','footerLink');</script>
Code: Select all
<script language="JavaScript" type="text/javascript">writeMaskedAddr(0,'ORTG Site Feedback','footerLink');</script>
Hope that helps,
Kevin