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

Error on showmenu with no url


Poster: raemacleman
Dated: Thursday December 11 2008 - 6:40:16 GMT

Hi,

I suspect that this isn't a very difficult question but I've been unable to find the answer by searching this forum. The problem is that I want a menu link wich will show a sub menu but not actually link to a page itself. My example is a menu item called "Head Office" which when moused over reveals a sub menu with two items called "Functions" and "Locations". There are pages for Functions and Location but not for Head Office. My menu code looks like this...

Code:
with(milonic=new menuname("About")){
margin=7;
style=submenuStyle;
aI("text=Company History;url=/about-us/company-history/company-history.asp;");
aI("text=Mission Statement;url=/about-us/mission-statement/mission-statement.asp;");
aI("text=Senior Management;url=/about-us/senior-management/senior-management.asp;");
aI("text=Head Office;showmenu=HeadOffice;");
aI("text=Public Announcements;url=/about-us/public-announcements/announcements.asp;");
aI("text=Careers;url=/about-us/careers/careers.asp;");
aI("text=Contact Us;url=/about-us/contact-us/contact-us.asp;");
aI("text=Privacy Policy;url=;");
}


The problem is that "Head Office" displays as a clickable link - when you click on it I get a page which says "false"! I have tried setting "url=;" but this makes no difference.

Can anyone help, please?

Kind regards
Rae MacLeman
--

Re: Error on showmenu with no url


Poster: Ruth
Dated: Thursday December 11 2008 - 7:41:36 GMT

Hi Rae,

I'll need to see your page to test this.

Ruth

Re: Error on showmenu with no url


Poster: raemacleman
Dated: Thursday December 11 2008 - 8:47:38 GMT

Ruth,

Thank you for your help. You can see the menu at ...

http://www.dark-tobacco.com/

The Functions and Directions pages are missing so you'll get a 404 but the Head Office link returns 'false'.

Rae

Re: Error on showmenu with no url


Poster: Andy
Dated: Thursday December 11 2008 - 10:06:26 GMT

An upgrade to the latest verison of the menu (v 5.811) will fix that problem

-- Andy