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

Really confused - help please


Poster: Yangster
Dated: Thursday March 8 2007 - 18:48:40 GMT

Hi,

I have been using Milonic menu for some time now.

It is used through my whole site and I have the same source files referenced on my index page and on the rest of the site.

However - suddenly on my index page at http://www.dvd-and-media.com if you use the menu the pop out menu under the item "DVD Products" for the menu item "DVD Media by Brand" doesnt work?? Although the item below it does work..... Also the "Services & Information" menu doesnt show itself at all!???? and the page says "Error on page"

Now you might be excused for thinking I had made a mistake in my code..... I have double checked it - now what is interesting is if you go to ANY other page in my site other than the index page - for example my DVD cases page http://www.dvd-and-media.com/dvd-cases.htm(all these other pages use the same menu code in the same directory - see my source code if you dont believe me)... BUT ON ANY other page of my site the menu functions correctly and doesnt display Error on Page.

I have checked this in IE7 and IE6 and Firefox.

HELP PLEASE - I am very confused....


Poster: Ruth
Dated: Thursday March 8 2007 - 20:37:01 GMT

Hi,

I am still working on it, I have no idea why it's doing that. But, I did find a workaround so it will show. In the data file, just above that brands submenu and after the service one put this.

Code:
with(milonic=new menuname("dummy")){
style=submenuStyle;
}


The menu then shows.

Also, you have a number of aIs that end with ) instead of );


Ruth


Poster: Ruth
Dated: Thursday March 8 2007 - 21:13:11 GMT

Wow, this is weird.

OK, I found what is causing the error, I'm getting a runtime error on IE.

On your other pages the file calls are

Code:
<noscript id="2" title="menu2">
<a href="sitemap.xml">Our site map and navigate all pages of DVD-and-Media.com</a>
</noscript>
<script type="text/javascript" src="Menu/menu_dvd.js"></script>
<noscript id="6" title="menu6">
<a href="default.htm">Our main DVD media navigation page</a>
</noscript>
<noscript id="6" title="menu6">
<a href="default.htm">Our main DVD media navigation page</a>
</noscript>


On that main page it is

Code:
<NOSCRIPT id=menu2><A href="http://www.dvd-and-media.com/sitemap.xml">Our site
map and navigate all pages of DVD-and-Media.com</A> </NOSCRIPT>
<SCRIPT src="menu_dvd.js" type=text/javascript></SCRIPT>
<NOSCRIPT id=menu3><A href="http://www.dvd-and-media.com/default.htm">Our main
DVD media navigation page</A> </NOSCRIPT>


When I replaced
Code:
<NOSCRIPT id=menu2><A href="http://www.dvd-and-media.com/sitemap.xml">Our site
map and navigate all pages of DVD-and-Media.com</A> </NOSCRIPT>


with
Code:
<noscript id="2" title="menu2"><a href="sitemap.xml">Our site map and navigate all pages of DVD-and-Media.com</a></noscript>


The menu started working again and no runtime error.

Ruth

Ruth -thanks for the help


Poster: Yangster
Dated: Friday March 9 2007 - 11:46:04 GMT

Ruth I appreciate the help... however I tried your suggestions and it worked of sorts... I added the ; to the end of every aI line and then tried adding your little snippet -

with(milonic=new menuname("dummy")){
style=submenuStyle;
}

Doing this fixed the Services menu but then broke the CD products menu... so I decided to create two new clean pages -

http://www.dvd-and-media.com/menu-test1.html

and

http://www.dvd-and-media.com/menu-test.html

They both refer to exactly the same code but one has NOSCRIPTS and the other not.

The one with NO NOSCRIPTS works and the other does not.

The pages in the main site that have NOSCRIPTS in them still work fine so I really dont understand why this is the case.

I know the quick fix is to just take out the NOSCRIPTS but that isnt good web practice so I am hoping you can help me solve this conundrum!

Simon
http://www.dvd-and-media.com


Poster: Ruth
Dated: Friday March 9 2007 - 16:19:10 GMT

Hi,

I don't think I said to remove it, but I have moved them below the call for the menu scripts and put your page up, it seems to work.


This is the coding as I put it in the page.

Code:
<script type="text/javascript" src="milonic_src.js"></script>

<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>

<script type="text/javascript" src="menu_dvd.js"></script>
<noscript id="menu1">
<a href="site-map.htm">DVD and Media site map, navigate all pages of the DVD-and-Media.com webshop</a>
</noscript>
<noscript id="menu2">
<a href="sitemap.xml">Our site map and navigate all pages of DVD-and-Media.com</a>
</noscript>
<noscript id="menu3">
<a href="default.htm">Our main DVD media navigation page</a>
</noscript>