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

Current Page Highlighting in v. 5


Poster: akenger
Dated: Thursday September 11 2003 - 16:19:50 BST

I just converted everything from v.3 to v.5. Overall, terrific improvements. There was a problem in v.3 that I fixed myself involving the current page highlighting - now there is not so much as a problem, but an interesting effect....The following is my script that is being generated by parsing an XML file. The problem I'm having is that if I'm on any of the pages in the submenus such as /pilut/index.cfm the "Home" link (first in the main menu) is also highlighted. Basically, whenever I end up on a page named index.cfm the Home is being highlighted. Anyone have any suggestions. I tried to plow through the j.s. code but the way it is formatted makes it very very hard to work with.

Milonic File Version:
Version 5.0 Release Candidate 9.0 Built: Wednesday September 3 2003 - 11:41

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="vertical";
aI("text=Home;url=/index.cfm;status=Go to Home;");aI("text=Edit My Account;url=/edit_my_account.cfm;status=Go to Edit My Account;");aI("text=PILUT;showmenu=men_2;");aI("text=Reporting;showmenu=men_6;");aI("text=Tech;showmenu=men_7;");aI("text=Site Monitor;url=/site_monitor/index.cfm;status=Go to Site Monitor;");aI("text=Miscellaneous;showmenu=men_11;");aI("text=Irolodex - Employee Finder;url=/irolodex.cfm;status=Go to Irolodex - Employee Finder;");aI("text=Logout;url=/logout.cfm;status=Go to Logout;");
}



with(milonic=new menuname("men_2")){
style=menuStyle;
overflow="scroll";
aI("text=PILUT Home;url=/pilut/index.cfm;status=Go to PILUT Home;");aI("text=RFUT;url=/pilut/rfut/index.cfm;status=Go to RFUT;");aI("text=EFUT;showmenu=men_3;");aI("text=Patient Search;url=/pilut/search.cfm;status=Go to Patient Search;");aI("text=Reporting;showmenu=men_4;");aI("text=Site Tool;showmenu=men_5;");aI("text=Duplicate Patient List;url=/pilut/possible_duplicates.cfm;status=Go to Duplicate Patient List;");aI("text=Add New Patient;url=/pilut/add_new_patient.cfm;status=Go to Add New Patient;");aI("text=Get New Patients;url=/pilut/get_new_patients.cfm;status=Go to Get New Patients;");
}

with(milonic=new menuname("men_3")){
style=menuStyle;
overflow="scroll";
aI("text=EFUT Home;url=/pilut/efut/index.cfm;status=Go to EFUT Home;");aI("text=Status Adder;url=/pilut/efut/status_adder.cfm;status=Go to Status Adder;");
}

with(milonic=new menuname("men_4")){
style=menuStyle;
overflow="scroll";
aI("text=Report Builder;url=/pilut/report_builder.cfm;status=Go to Report Builder;");aI("text=Retrieve a Report;url=/pilut/retrieve_report.cfm;status=Go to Retrieve a Report;");
}

with(milonic=new menuname("men_5")){
style=menuStyle;
overflow="scroll";
aI("text=Site Tool Home;url=/pilut/new_sites.cfm;status=Go to Site Tool Home;");aI("text=Site Tool (Historical);url=/pilut/all_new_sites.cfm;status=Go to Site Tool (Historical);");
}

with(milonic=new menuname("men_6")){
style=menuStyle;
overflow="scroll";
aI("text=Reporting Home;url=/reporting/index.cfm;status=Go to Reporting Home;");aI("text=Invoicing Report;url=/reporting/invoicing_report.cfm;status=Go to Invoicing Report;");aI("text=Monthly Report Generator;url=/product_dev/monthly_reports.cfm;status=Go to Monthly Report Generator;");
}

with(milonic=new menuname("men_7")){
style=menuStyle;
overflow="scroll";
aI("text=Tech Home;url=/tech/index.cfm;status=Go to Tech Home;");aI("text=Administrative Tools;url=/admin_tools.cfm;status=Go to Administrative Tools;");aI("text=File Uploader;showmenu=men_8;");aI("text=BEEOM;showmenu=men_9;");aI("text=Site Manager;showmenu=men_10;");
}

with(milonic=new menuname("men_8")){
style=menuStyle;
overflow="scroll";
aI("text=Upload File List;url=/tech/files/index.cfm;status=Go to Upload File List;");aI("text=Add File;url=/tech/files/add_file.cfm;status=Go to Add File;");aI("text=File Archives;url=/tech/files/archives.cfm;status=Go to File Archives;");
}

with(milonic=new menuname("men_9")){
style=menuStyle;
overflow="scroll";
aI("text=BEEOM Home;url=/tech/bugs/index.cfm;status=Go to BEEOM Home;");aI("text=Add Bug;url=/tech/bugs/addbug.cfm;status=Go to Add Bug;");aI("text=Bug Archives;url=/tech/bugs/archives.cfm;status=Go to Bug Archives;");
}

with(milonic=new menuname("men_10")){
style=menuStyle;
overflow="scroll";
aI("text=Site Manager Home;url=/site_manager/index.cfm;status=Go to Site Manager Home;");aI("text=Module Editor;url=/site_manager/module_editor.cfm;status=Go to Module Editor;");aI("text=Element Editor;url=/site_manager/element_editor.cfm;status=Go to Element Editor;");aI("text=Client Editor;url=/site_manager/client_editor.cfm;status=Go to Client Editor;");aI("text=Client TextArea Editor;url=/site_manager/client_txtarea_editor.cfm;status=Go to Client TextArea Editor;");aI("text=TextArea Label Editor;url=/site_manager/txtarea_label_editor.cfm;status=Go to TextArea Label Editor;");
}

with(milonic=new menuname("men_11")){
style=menuStyle;
overflow="scroll";
aI("text=Referral Pricing Editor;url=/edit_referral_pricing.cfm;status=Go to Referral Pricing Editor;");
}



drawMenus();
</script>


Poster: Maz
Dated: Thursday September 11 2003 - 16:43:52 BST

All I can think of is a work around, use a full url in index to disable it; play around with pagecolor on item (if it works in that position);redirect index.

Wish I understood more about the relationship between xml and js, because I'm still not sure why my page links freeze in an old browser.

Regards
maz

Workaround


Poster: akenger
Dated: Thursday September 11 2003 - 16:50:20 BST

I suppose that would work, but that seems like a clugey fix - The highlighting really should reflect the full pathname - not just the script name....


Poster: Maz
Dated: Thursday September 11 2003 - 17:07:55 BST

I would like that, because all my links have to be full urls, pagecolor doesn't work for me.

Perhaps someone else has a better idea?

maz