Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

Milonic and CSS Web pages / Netscape


Poster: ripnoel
Dated: Thursday June 24 2004 - 17:11:40 BST

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:

<% __at__ LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>


Poster: Ruth
Dated: Thursday June 24 2004 - 19:01:59 BST

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:
<SCRIPT language=JavaScript type=text/javascript>writeMaskedAddr(1,'ORTG general inquiry','footerLink');</SCRIPT>


Ruth


Poster: John
Dated: Friday June 25 2004 - 5:08:05 BST

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.


Poster: Andy
Dated: Friday June 25 2004 - 8:35:28 BST

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


Poster: Ruth
Dated: Friday June 25 2004 - 8:57:16 BST

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

Ruth

Fixed bu info FYI


Poster: ripnoel
Dated: Friday June 25 2004 - 12:34:11 BST

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:
<% __at__ 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
------------------------------------------------

<% __at__ 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. &quot;Keeping your world online and connected!&quot;</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="info __at__ strategictechresource.com">info __at__ 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>


Poster: Ruth
Dated: Friday June 25 2004 - 14:19:34 BST

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.


Quote:
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:
Line 34
char 1
error: object expected

Line 38
char 1
error: object expected


Ruth


Poster: Maz
Dated: Friday June 25 2004 - 18:34:53 BST

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


Poster: kevin3442
Dated: Monday June 28 2004 - 22:53:25 BST

Hi Rip,

I'll jump in here too...
Ruth wrote:
Quote:
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:
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:
<script language="JavaScript" type="text/javascript">writeMaskedAddr(1,'ORTG general inquiry','footerLink');</script>

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