currently selected page not highlighted

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kilkul
Beginner
Beginner
Posts: 5
Joined: Thu Oct 14, 2004 3:49 pm

currently selected page not highlighted

Post by kilkul »

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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Have you tried adding

pagematch=/path/folder/here.html;

maz
kilkul
Beginner
Beginner
Posts: 5
Joined: Thu Oct 14, 2004 3:49 pm

Post by kilkul »

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 (???)
kilkul
Beginner
Beginner
Posts: 5
Joined: Thu Oct 14, 2004 3:49 pm

Post by kilkul »

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
Post Reply