Identical Menu on every page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
terrym
Advanced
Advanced
Posts: 10
Joined: Wed Jan 17, 2007 10:01 am
Location: Blackburn, UK

Identical Menu on every page

Post by terrym »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
terrym
Advanced
Advanced
Posts: 10
Joined: Wed Jan 17, 2007 10:01 am
Location: Blackburn, UK

Post by terrym »

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
Post Reply