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:01
Selected menu Item - Style
Poster: lulu
Dated: Monday December 13 2004 - 20:23:07 GMT
Hi:
I'm implementing the DHTML menu; I want to disable the style of the menu option (and path) of the selected menu item, because more than one menu item can go to the same page, and all change the style.
I was reading the style properties and I didn't know which one to use.
Thanks,
Lulu
Poster: Ruth
Dated: Monday December 13 2004 - 21:52:43 GMT
I think this must be my don't understand anything day. I'm not sure what you are trying to do, could you be a little more descriptive....of course someone else may not being having the same kind of day I am and not need that
Ruth
Poster: lulu
Dated: Tuesday December 14 2004 - 23:04:25 GMT
Hi:
I'm sorry; English is not my first language…
I'm developing in .NET using c# and I created a web user control that generates the JavaScript dynamically from a database according to the user permissions and I added that user control to all my pages so the menu is displayed all the time…
Some of the menu options have the same url. Lets say for example that 2 menu options call the same url:
aI("text=Sample 1;url=UnderMaintenance.aspx;");
aI("text=Sample 7;url=UnderMaintenance.aspx;");
Both menu options will have a style when one is selected.
What I want to know is the style properties I need to change in order avoid the menu options to change when the url is posted.
Thanks,
Lulu
Poster: lulu
Dated: Wednesday December 15 2004 - 0:28:58 GMT
Hi:
Sorry... I found my error... I was defining twice the 'pagecolor' & 'pagebccolor' styles and that is why it wasn't showing my styles on the current page menu item.
Thanks,
Lulu
By the way, for the ones interested on dynamically create the javascript in .NET you will need to:
- Delete the script line that calls the menu_data.js
- In the code create an string that contains all of what is included in the menu_data.js including the menu options that can be queried from a table and on the page load when the page is not posted back add this:
Page.RegisterStartupScript("MenuDetail", yourstringvariable);