Preselected menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Luis
Advanced
Advanced
Posts: 11
Joined: Tue Mar 31, 2009 7:07 pm

Preselected menu

Post by Luis »

Hi, please could you tell me how can I show an option of the amazon menu to appear the first time as selected ( first level ).
Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Preselected menu

Post by Ruth »

Hi,

I will need an example page and a more in depth explanation of what you want.

You can have a submenu showing and the main item 'matching' by using openmenusbyurl.js module, which will open a submenu when the urls match, and by setting the page properties in the menu_data.js file.

Go to http://milonic.com/ you will see that the Home item in the menu has a double red arrow and the text color is red. That is a result of setting the properties pageimage="db_red.gif"; and pagecolor="#aa0000"; in the style for the main menu. So, since the home item url is http://www.miloinc.com/ when you are on that page, the page properties change the item.

Ruth
Luis
Advanced
Advanced
Posts: 11
Joined: Tue Mar 31, 2009 7:07 pm

Re: Preselected menu

Post by Luis »

Hi, thanks for your help.
In this url there is an example of what we want to do:
http://200.24.214.66:7575/testtaglibMer ... ample.html
or
http://200.110.78.50:7575/testtaglibMer ... ample.html


After the user is authenticated, he/she enters the application with the option "Mis Mensajes" already opened. What we need is that this opcion appear like selected in the menu (image 2).
Then , if the users clicks in other part of the menu like "Productos", then the opction product appears selected ( wich is the norma behaviour ) ( image 3).

Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Preselected menu

Post by Ruth »

Hi,

I'm not sure on this, I have posted to Milonic for help. Now, if this is a web page, then you can use openmenusbyurl.js and when you click on an item and it takes you to a webpage, then the submenu should be open. Here is a demo. Just click on any of the items, or on any of the subitems and when you go to that page you'll see the submenus are open. This is set up with only the submenus having links, but you can do it from a main menu also. If what you want is something different, I have to wait for Milonic to respond.

http://support.milonic.com/demos/openme ... /index.htm
Luis
Advanced
Advanced
Posts: 11
Joined: Tue Mar 31, 2009 7:07 pm

Re: Preselected menu

Post by Luis »

Hi,
Thanks for your answer,
Yes, the image I sent was from a web page.
We tried openmenusbyurl.js, but it seems that it does not work with frames.
I forgot to tell you that we are using the amazon menu with frames.

Thanks.
Luis
Advanced
Advanced
Posts: 11
Joined: Tue Mar 31, 2009 7:07 pm

Re: Preselected menu

Post by Luis »

Hi,
openmenusbyurl.js works fine when used without frames.
But we are using the amazon menu with frames, and then it does not work.

Thanks
Luis
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Preselected menu

Post by Ruth »

Hi,

Well, I would need your frameset and menu in order to see if I could figure something out for you. Without your layout and the menu with some links, I can't really experiment to see if there is some other way to do it or make any suggestions to help. I'm sorry. About the frames, the reason it doesn't work is because, more or less, frames is like having a different browser window open for each frame in the set. So, the openmenusbyurl.js when you click a main item and open a page in another frame, it can't read that x page is there.

Ruth
Post Reply