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:58

o$ is not defined


Poster: LG
Dated: Thursday August 10 2006 - 20:16:31 BST

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


Poster: Andy
Dated: Friday August 11 2006 - 9:30:22 BST

Try changing this porttion of code:

Code:
<script type="text/javascript" src="menuScripts/milonic_src.js"></script>
<noscript><a href="http://www.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:
<script type="text/javascript" src="menuScripts/milonic_src.js"></script>
<noscript><a href="http://www.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


Poster: LG
Dated: Friday August 11 2006 - 12:28:31 BST

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