o$ is not defined

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
LG
Beginner
Beginner
Posts: 5
Joined: Thu Aug 10, 2006 8:11 pm

o$ is not defined

Post by LG »

Hi

I'm dynamically creating the menu and am getting an error. I have taken the rendered HTML and placed it on a public site. Perhaps someone can help me.

IE gets the helpful Object Expected error.
FF yields o$ is not defined error.

http://www.curtis1000.com/menuTest/menuTest.htm

Thanks
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try changing this porttion of code:

Code: Select all

<script type="text/javascript" src="menuScripts/milonic_src.js"></script> 
<noscript><a href="https://milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!-- 
if(ns4)_d.write("<script language=JavaScript src=menuScripts/mmenuns4.js><\/script>"); 
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>"); 
-->
</script>


To This:

Code: Select all

<script type="text/javascript" src="menuScripts/milonic_src.js"></script> 
<noscript><a href="https://milonic.com/">JavaScript Menus and DHTML Menus Powered by Milonic</a></noscript>
<script type="text/javascript">
<!-- 
if(ns4)_d.write("<script language=JavaScript src=menuScripts/mmenuns4.js><\/script>"); 
else _d.write("<script language=JavaScript src=menuScripts/mmenudom.js><\/script>"); 
-->
</script>

Your file location for mmenudom.js was wrong.


Hope this helps,
Andy
LG
Beginner
Beginner
Posts: 5
Joined: Thu Aug 10, 2006 8:11 pm

Post by LG »

Thanks for the reply, I didn't see my missing directory. Now the menu appears to load then stops giving a $N is not defined. I have updated the test link. Any idea on this one? I'm trying to set the menu in a table and am using the method in the documentation. The top menu uses images while the submenus are text.

I'm using an onLoad call to create the menu after the page renders. Is this going to cause the page to flicker?

Les
Post Reply