Problem putting the same URL in different menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
andyg
Beginner
Beginner
Posts: 4
Joined: Wed Oct 01, 2003 4:37 pm

Problem putting the same URL in different menu items

Post by andyg »

Dear Support

I am finding that I cannot put the same URL in more than one menu item without getting the following javascript error:

Error: '_mi[...].18' is not an object

If I make the URLs different e.g. url=/about/index.htm and url=/about/ both of which point to the same page all is OK but this is not always possible.

Is there any solution to this problem?

Thanks
Andy
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Are you referring to the same menu or are these items in different menus? And do you have a URL?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
andyg
Beginner
Beginner
Posts: 4
Joined: Wed Oct 01, 2003 4:37 pm

Post by andyg »

The URLs are in different sub menus of the same top level menu.

The problem can be seen on our test server:
http://test.bioscience2004.org/

If you click on the Abstracts button you will see what I mean. I should have said I am testing this menu on a PC with Win 2K and IE 5.0

Thanks
Andy
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I viewed it in IE6 with Win2k and see no such problems. I see two items in the abstracts menu with the same URL, but no problems. I also could not find another menu with a duplicate link as that in abstracts. I would upgrade, and for your users with 5.0, I would slightly change the links maybe, eh?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
andyg
Beginner
Beginner
Posts: 4
Joined: Wed Oct 01, 2003 4:37 pm

Post by andyg »

Thanks for the suggestion. Its true there were no other links to the abstract page but there is definitely a problem with IE5. If I change the link from /abstracts/ to /abstracts/default.htm it seems to work OK but on other menu items to other pages the default.htm needs to be removed!!! There doesn't seem to be any consistency about this problem.

Could the problem have something to do with the highlighting of the menu item based on the current page? As I am not using this facility is there any way to disable it or remove the code for this feature altogether?

It is all very well us upgrading to IE6 but what about all the outside visitors to our site? I don't want to make the site unusable to a whole bunch of people.

Any suggestions would be gratefully received.

Thanks
Andy
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Any references you have to pagecolor or pageitem in your styles or your actual menu code, comment them out by putting a // at the beginning of the line. If pagecolor and the like are not defined, it may not even look at your URLs for matching.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
andyg
Beginner
Beginner
Posts: 4
Joined: Wed Oct 01, 2003 4:37 pm

Post by andyg »

Hi

I had already done that. It didn't help! Sorry!

Andy
Post Reply