error on page message bottom bar IE6 and IE7

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
AnnGoodwin
Beginner
Beginner
Posts: 9
Joined: Wed Jan 17, 2007 10:51 pm

error on page message bottom bar IE6 and IE7

Post by AnnGoodwin »

I have the menu scripts in an include file, everything runs properly but we get error messages in IE7 and IE6 on the bottom window bar- error message text is

Line: 21
Char: 29424
Error: Object expected
Code:0

and we've isolated it to the script include file by putting it alone on this page:

http://www.greenbuild.co.nz/test.asp

Page source, includes the include-file text:

<!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">
<head>
<title>GreenBuild™ Product Categories</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="main.css" rel="stylesheet" type="text/css">
<style type="text/css">
</style>


</head>
<body>
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>

<script language=JavaScript src="tooltips.js" type=text/javascript></script>
<SCRIPT language=Javascript src="mm_siteIndex.js" type=text/javascript></SCRIPT>
</body>
</html>


thanks for any help in advance- obviously not a critical error but will reflect on the site's credibility if I can't get rid of that idiot little error icon on the bottom of every page.

-Ann
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You are running different versions of the menu code files (a big no-no!), both of which are down-level anyway. ALL code files must be the same version.

Upgrade to the current 5.779, and, if you're no longer supporting NS4, use the new call structure as shown in /docs/install.html.
John
AnnGoodwin
Beginner
Beginner
Posts: 9
Joined: Wed Jan 17, 2007 10:51 pm

Post by AnnGoodwin »

thank you! I didn't realise I was doing so!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Hopefully that will fix things. If not come on back and we'll go from there.
John
AnnGoodwin
Beginner
Beginner
Posts: 9
Joined: Wed Jan 17, 2007 10:51 pm

Post by AnnGoodwin »

It did, thanks again- seems a simple error but would have taken me ages to find as I'd swapped all the files out not too long ago and just wouldn't have thought of that!
Post Reply