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

currently selected page not highlighted


Poster: kilkul
Dated: Thursday October 14 2004 - 15:57:03 BST

i'm using your menu in a .net aspx project, structured in many subdirectories. my problem is that the only highlighted item in the menu is the one from the project's root, none of the other nested pages being highlighted when accessed. i saw a reply for a somehow similar issue, regarding an iframe problem. still, that will not work in my case, due to the fact that the menu is not fixed, in a single same page (i thought about placing the project pages in an iframe, and place the menu above the iframe, but it's not so conveniant, so i'm hoping u have a solution for that)

thanks


Poster: Maz
Dated: Friday October 15 2004 - 2:30:36 BST

Have you tried adding

pagematch=/path/folder/here.html;

maz


Poster: kilkul
Dated: Friday October 15 2004 - 7:59:53 BST

sorry, though it seems to be a good ideea in case of common URLs, my menu is dynamically generated from a SQL database, and it can only work like that (i need to make it run on any server, so i can't add a fixed URL, and on every page it renders specific - with ../../)

i'm placing a sample in here, maybe it'll help

*******************************************************

with(milonic=new menuname('CRSG')){
style=menuStyle;
overflow='scroll';
aI('text=Contract Info;status=Contract Info;url=../../CRSG/ContractSetup/ContractSetupList.aspx?MenuItemId=133;target=MainFrame;pagematch=../../CRSG/ContractSetup/ContractSetupList.aspx?MenuItemId=133;');
aI('text=Manage Rates;status=Manage Rates;url=../../CRSG/ManageRates/ManageRatesList.aspx?MenuItemId=134;target=MainFrame;pagematch=../../CRSG/ManageRates/ManageRatesList.aspx?MenuItemId=134;');
}

*******************************************************

note: the application could not work if i add an / in from of the url (or pagematch)...
in the meantime, i'll read some more docs, and try to do it with cookies (???)


Poster: kilkul
Dated: Friday October 15 2004 - 8:16:22 BST

i think i've fixed it :) removing the trailing ../../, which were added by an external function, and leaving only the URL from the database in the pagematch property, it highlights the current page's menu item

thanks for your suggestion! :D