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

Problem with 'pagecolor'


Poster: pscs
Dated: Tuesday September 23 2003 - 22:54:54 BST

If I have two menu items with similar URLs

eg

aI("text=Maps;url=maps.html;");
aI("text=Other Maps;url=other_maps.html");

Then, if I go to the 'other_maps.html' page, the page coloring is triggered on both the 'Maps' and 'Other Maps' items

Paul[/b]


Poster: Hergio
Dated: Wednesday September 24 2003 - 1:33:27 BST

This would be because there is a javascript function which the menu utilizes in this case called match(). What it does is searches for an occurrance of a string anywhere within another string. So what its doing is taking the url, maps.html, and finding it the menu item maps.html as well as the menu item other_maps.html. Because the second URL technically does contain the first one.

I just re-created the scenerio over on my dev machine with the same names and such and it worked fine, it didnt color them both when I was viewing maps.html. I am using RC10, and thats not even the latest version. Upgrade to RC11 and that should solve your problem.


Poster: pscs
Dated: Wednesday September 24 2003 - 10:18:31 BST

This was with RC11...

I've tried it on both IE6 and Opera 7 and I get the same problem.

Is there anywhere I can email the full menu to so you can try with that?

(I could open a support issue if you want as we've got a corporate licence, but I prefer to do things in open forums if possible, so other people who may have the problem later can find it)


Poster: Hergio
Dated: Wednesday September 24 2003 - 17:26:08 BST

Sure email me it, using the Email Link below all my posts. You can either send me a URL or the code itself. We should be able to nail the problem down pretty quick. I'll keep an eye out for your email....put milonic somewhere in the subject line.