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

retain menu state


Poster: davebarnes
Dated: Wednesday April 29 2009 - 0:35:40 BST

I am trying to get a main menu item to stay in its selected state until I click on another main menu item.

I have tried using a single menu (which is what the rest of the website has), but the behavior was not what my customer wants. My customer wants her menu to behave exactly the same way as the Wall Street Journal (wsj.com).

For these 3 pages, I created new menus. A Main Menu and a different and separate sub-menu for each group of related pages.
http://www.octoscope.com/English/Compan ... Scope.html
http://www.octoscope.com/English/Miscel ... olicy.html
http://www.octoscope.com/English/Miscel ... ct_Us.html

The behavior is perfect with one exception.
When you are the About Us page, the About Us main menu item is correct with blue text on white background.
I need it to stay that way even whilst moving to one of the sub-pages such as Privacy Policy.

I have tried: retainClickValue, openonclick, closeonclick, clickcolor. All to no avail.

Ideas are welcome.

Thanks.

Re: retain menu state


Poster: Ruth
Dated: Wednesday April 29 2009 - 7:13:08 BST

Hi,

It can't retain the state since they are not related menus. So, when you first click on the About Us and go to that page the pagebgcolor and pagecolor are in effect, but when you click on one of the second menu's items and go to its page, then the pagebgcolor and pagecolor work on that menu, not on the first menu which is a separate menu. As far as I know, unless there's some kind of function to tell the main menu that it is supposed to keep the page properties working I don't think you can do this. Actually it would have to have a function for each separate main menu item telling them to keep that working when the menu is on w,x,y,z, pages.

I have just posted more information for you at the other post.

Ruth

Re: retain menu state


Poster: Ruth
Dated: Thursday April 30 2009 - 20:41:25 BST

HI Dave,

Finally, good news. I figured out how to do what you want using the different menus :) But, that's only because of how you did the layout! And it is so simple and should have been obvious :oops: since it is something I have answered any number of times, except not when there are separate menus. Anyway....

Since you are putting all the pages for the various main items into their own folders, and the pages from the 'submenus' are also in those folders, then you can set a page match in each main item to the folder for that item. For example, in the aI string for Wireless_WTO main item, you'd add
Code:
pagematch=http://www.octoscope.com/English/Wireless_CTO/
Having that set like that should make the main item match to any page that is clicked in its 'submenu' since those pages are also in that folder.

Let me know if there are problems with this. I'm 99.9% sure that it will work.

Ruth

Re: retain menu state


Poster: davebarnes
Dated: Friday May 1 2009 - 4:32:20 BST

30APR2009
Is working for me.
I have asked my customer to evaluate.
Hopefully, she will be happy.
Will report back here.

01MAY2009
My customer says:
"Esthetics look good, but the thing keeps having refresh problems and once
crashed in IE8
upon clicking the main menu buttons (CTO and Development).
This is very visible as the issues happen half the time in IE8."

My problem is that I cannot test in IE8.

Re: retain menu state


Poster: Ruth
Dated: Friday May 1 2009 - 17:33:29 BST

Hi Dave,

I have the same problem since I don't have IE8. I will post to Milonic about the issue and have you go here, also, and they'll want to know what IE8 and if the client is using tabs. http://www.milonic.com/support You have to be logged in at the main site to use this. I think they'll need the site and more detail on when it is crashing.

I'm sorry I couldn't test for you, but actually I have a feeling this one would be beyond me since it has something to do with the browser crashing.

Ruth

Re: retain menu state


Poster: davebarnes
Dated: Tuesday May 5 2009 - 14:47:24 BST

Ruth,

1. Thank you for all your help.

2. The solution to the 2 separate menus not working was: change webhosting providers. I switched from Domains.com to EStreet.com yesterday and the site appears functioning correctly.

3. I wrote a long message to Andy in my Support Ticket explaining everything.

,dave