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

Identical Menu on every page


Poster: terrym
Dated: Wednesday January 17 2007 - 9:28:24 GMT

Hi
I have just started using the Milonic Menu, ver: 5.766 Table based Horizontal, and it is really great. But I have a small problem which I'm hoping someone can help me with.
I have a Main Menu page and this loads with no errors. But I'm now starting to create sub-pages and, apart from the actual page content, I want the top of each page where the menu is displayed to be identical to the Main Menu page.
At the moment, I have the Main Menu page and one sub-menu page.
They are both identical in every way apart from this line:
with(milonic=new menuname("xxxxxxxxxx")){
In the Main Menu page the menuname is "MainMenu" and in the Sub-menu page the menuname is "SubMenu01".
As I have said, when the Main Menu page is opened, it just opens normally. But when I link to the Sub-menu page I get a yellow triangle with an exclamation mark to the left of the word Done, on the status bar. If I click on this triangle, I get an error message as follows:
Error: 'menuname' is undefined
and it points to the appropriate line in the Sub-menu page.
I initially tried this with the same menuname as the Main Menu page, but I received the same message.
I expect the reason is something really simple, and I look forward to any replies.
Thanks


Poster: Andy
Dated: Thursday January 18 2007 - 11:41:21 GMT

Hi,

The yellow triangle indicates a JavaScript error and can be useful for debugging.

We would need to see the page or the code in its entirety to be able to provide a solution.

Regards,
Andy


Poster: terrym
Dated: Thursday January 18 2007 - 13:22:54 GMT

Hi Andy

Thankfully, I have now resolved the problem. It was actually the path for the three Script files. So all is now working OK.

Thanks again
Terry