Milonic and CSS Web pages / Netscape

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ripnoel
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Jan 21, 2003 4:15 am
Location: Foothills of The Great Smoky Mtns.

Milonic and CSS Web pages / Netscape

Post by ripnoel »

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"%>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Code: Select all

<SCRIPT language=JavaScript type=text/javascript>writeMaskedAddr(1,'ORTG general inquiry','footerLink');</SCRIPT>
Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The error isn't coming from the menu, you've got some other JavaScript on the webs page that is causing the errors.

Cheers
Andy
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

:oops: I should have been clearer that the error was not menu related. Sorry.

Ruth
ripnoel
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Jan 21, 2003 4:15 am
Location: Foothills of The Great Smoky Mtns.

Fixed bu info FYI

Post by ripnoel »

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&nbsp;&nbsp;&nbsp;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 &copy; 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>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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.

Also FYI there is no other javascript on any of these pages or on this entire site.
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 is

Code: Select all

Line 34
char 1
error: object expected

Line 38
char 1
error: object expected
Ruth
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

XHTML requires that all javascript is enclosed in the CDATA tag.

You can see a way of doing this in the beginners section of this forum under how to get started.

maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Rip,

I'll jump in here too...
Ruth wrote:
Also FYI there is no other javascript on any of these pages or on this entire site.
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 is

Code: Select all

Line 34
char 1
error: object expected

Line 38
char 1
error: object expected
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.

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>
and

Code: Select all

<script language="JavaScript" type="text/javascript">writeMaskedAddr(0,'ORTG Site Feedback','footerLink');</script>
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
Post Reply