showmenu AND url makes menu disapear.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
redbeard
Advanced
Advanced
Posts: 12
Joined: Mon Aug 28, 2006 6:29 pm

showmenu AND url makes menu disapear.

Post by redbeard »

OK, I am having one more problem, and I have isolated it down to the "showmenu=" command while using "url="

This is what is happening. when I use this command the menu disapears on the destination page.:

Code: Select all

aI("showmenu=Eclipse2;text=ECLIPSE;url=http://64.23.96.234/new-design/Products/productsEclipseHome.shtml;");
I am using both "showmenu=" and "url" together for seven pages and this is happening on all seven pages. Even if I just type in the destination URL into the browser the menu isn't there.

I can't put the destination page on the next submenu because it is hidden from the user. I accomplish this by leaving the "text=" command empty. I only do this to keep the submenu visible on those second subnav pages.

You can see an example of the missing menu here:
http://64.23.96.234/new-design/Products ... Home.shtml

And you can see the working menu here:
http://64.23.96.234/new-design/

Below is the full code to the data file

Code: Select all

fixMozillaZIndex=false; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle='normal';
headerbgcolor="";
headercolor="";
offbgcolor="";
offcolor="#FFFFFF";
onbgcolor="";
oncolor="#1E1D56";
outfilter="";
overfilter="";
padding=4;
pagebgcolor="";
pagecolor="#000000";
separatorcolor="#FFFFFF";
separatorsize=1;
subimage="";
subimagepadding=2;
}

with(menuStyleSub=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle ='normal';
headerbgcolor="";
headercolor="";
offbgcolor="";
offcolor="#92571E";
onbgcolor="";
oncolor="#1E1D56";
outfilter="";
overfilter="";
padding=4;
pagebgcolor="";
pagecolor="#000000";
separatorcolor="#92571E";
separatorsize=1;
subimage="";
subimagepadding=2;
}

with(milonic=new menuname("Products")){
style=menuStyleSub;
orientation="horizontal";
screenposition="center";
menuwidth=783;
menualign="right";
margin=5;
left="offset=-10";
//align="center";
//position="relative";
aI("text=PRODUCTS HOME;url=http://64.23.96.234/new-design/Products/index.shtml;");
aI("showmenu=Eclipse2;text=ECLIPSE;url=http://64.23.96.234/new-design/Products/productsEclipseHome.shtml;");
aI("text=VELOX LE;url=http://64.23.96.234/new-design/Products/productsVelox-LE.shtml;");
aI("showmenu=Software;text=SOFTWARE SOLUTIONS;url=http://64.23.96.234/new-design/Products/productsSoftware.shtml;");
aI("text=PRODUCT HISTORY;url=http://64.23.96.234/new-design/Products/productsHistory.shtml;");
}


with(milonic=new menuname("Eclipse2")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseHome.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseNodal.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseLink.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseOutdoor.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseData.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipsePDHTM.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseQuattro.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsEclipseSoftware.shtml;");
}


with(milonic=new menuname("Software")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Products/productsSoftwareProVision.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Products/productsSoftwarePortal.shtml;");
}


with(milonic=new menuname("Solutions")){
style=menuStyleSub;
orientation="horizontal";
screenposition="center";
menuwidth=783;
menualign="right";
margin=5;
left="offset=-10";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Solutions/index.shtml;");
aI("text=MOBILE;url=http://64.23.96.234/new-design/Solutions/solutionsMobile.shtml;");
aI("text=WIRELESS BROADBAND;url=http://64.23.96.234/new-design/Solutions/solutionsWireless.shtml;");
aI("text=UTILITIES;url=http://64.23.96.234/new-design/Solutions/solutionsUtilities.shtml;");
aI("text=EDUCATION;url=http://64.23.96.234/new-design/Solutions/solutionsEducation.shtml;");
aI("text=OIL & GAS;url=http://64.23.96.234/new-design/Solutions/solutionsOilGas.shtml;");
aI("text=DEFENSE;url=http://64.23.96.234/new-design/Solutions/solutionsDefense.shtml;");
aI("text=GOVERNMENT;url=http://64.23.96.234/new-design/Solutions/solutionsGovernment.shtml;");
aI("text=ENTERPRISE;url=http://64.23.96.234/new-design/Solutions/solutionsEnterprise.shtml;");
aI("text=HEALTHCARE;url=http://64.23.96.234/new-design/Solutions/solutionsHealthcare.shtml;");
aI("text=PUBLIC SAFETY;url=http://64.23.96.234/new-design/Solutions/solutionsPublicSafety.shtml;");
}


with(milonic=new menuname("Support")){
style=menuStyleSub;
orientation="horizontal";
screenposition="center";
menuwidth=783;
menualign="right";
margin=5;
left="offset=-10";
//align='center';
//position="relative";
aI("text=SUPPORT HOME;url=http://64.23.96.234/new-design/Support/index.shtml;");
aI("showmenu=Field;text=FIELD SERVICES;url=http://64.23.96.234/new-design/Support/supportFieldService.shtml;");
aI("showmenu=Technical;text=TECHNICAL SUPPORT;url=http://64.23.96.234/new-design/Support/supportTechnicalOverview.shtml;");
aI("showmenu=Repair;text=REPAIR / RETURN;url=http://64.23.96.234/new-design/Support/supportRepairReturn.shtml;");
aI("text=WARRANTY INFO;url=http://64.23.96.234/new-design/Support/supportWarrantyPolicy.shtml;");
aI("text=PRODUCT SOFTWARE UPGRADE;url=http://64.23.96.234/new-design/Support/supportUpgrades.shtml;");
}


with(milonic=new menuname("Repair")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Support/supportHotline.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Support/supportReturnPolicy.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Support/supportReturnHowDoI.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Support/supportRepairPrograms.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Support/supportHotline.shtml;");
}


with(milonic=new menuname("Field")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Support/supportTraining.shtml;");
}


with(milonic=new menuname("Technical")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Support/supportServiceCenters.shtml;");
}


with(milonic=new menuname("Company")){
style=menuStyleSub;
orientation="horizontal";
screenposition="center";
menuwidth=783;
menualign="right";
margin=5;
left="offset=-10";
//position="relative";
aI("showmenu=CompanyHomeSub;text=COMPANY HOME;url=http://64.23.96.234/new-design/Company/;");
aI("text=NEWS and PRESS;url=http://64.23.96.234/new-design/Company/companyNewsPress.shtml;");
aI("text=INVESTOR;url=http://64.23.96.234/new-design/Company/companyInvestor.shtml;");
aI("text=CAREERS;url=http://64.23.96.234/new-design/Company/companyCareers.shtml;");
}


with(milonic=new menuname("CompanyHomeSub")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Company/companyProfile.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyPhilosophy.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyExecutives.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyBoard.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnology.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyFAQs.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyPatents.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyGlossary.shtml;");
}


with(milonic=new menuname("Contact Us")){
style=menuStyleSub;
orientation="horizontal";
screenposition="center";
menuwidth=783;
menualign="right";
margin=5;
left="offset=-10";
//position="relative";
aI("showmenu=ContactHomeSub;text=CONTACTS HOME;url=http://64.23.96.234/new-design/ContactUs/index.shtml;");
aI("text=OFFICE LOCATIONS;url=http://64.23.96.234/new-design/ContactUs/contactLocations.shtml;");
aI("text=PARTNERS;url=http://64.23.96.234/new-design/ContactUs/contactPartner.shtml;");
aI("text=REQUEST INFO;url=http://64.23.96.234/new-design/ContactUs/contactInfo-form.shtml;");
aI("text=FEEDBACK FORM;url=http://64.23.96.234/new-design/ContactUs/contactFeedback-form.shtml;");
}


with(milonic=new menuname("ContactHomeSub")){
style=menuStyleSub;
orientation="vertical";
top="offset=0px"; 
left="offset=-1600";
//align="center";
//position="relative";
aI("text=;url=http://64.23.96.234/new-design/Company/companyProfile.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyPhilosophy.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyExecutives.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyBoard.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnology.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyFAQs.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyPatents.shtml;");
aI("text=;url=http://64.23.96.234/new-design/Company/companyTechnologyGlossary.shtml;");
}
drawMenus();
Thanks in advance
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Well, I'll have to post to someone because I can't see any reason why the menu is not there since if you paste the url that is listed for the program files you get the program files. The only thing I see that's different is the shtml as the page extension. Would you have to use some kind of include for the file or something because of that? I know nothing about shtml.

Ruth
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I was just thinking after posting the above, try making that page you go to that doesn't have the menu as an html page and see if the menu shows up. If it does it will narrow the problem area because that would mean it has something to do with the shtml

Ruth
HiE
Beginner
Beginner
Posts: 4
Joined: Thu Sep 14, 2006 5:08 pm

I had a similar problem

Post by HiE »

try:

aI("showmenu=menu1;text=menu1;clickfunction=iframename.location.href='menu1.htm';");

iframename= iframe name to load de page

Bye
redbeard
Advanced
Advanced
Posts: 12
Joined: Mon Aug 28, 2006 6:29 pm

Post by redbeard »

Ruth wrote:Hi,

I was just thinking after posting the above, try making that page you go to that doesn't have the menu as an html page and see if the menu shows up. If it does it will narrow the problem area because that would mean it has something to do with the shtml

Ruth
I linked to head.html and the same problem, no menu appears. I then duplicated that file and only changed the name to head2.html and the menu appears. The only diference between these two files is that head.html is being called in the "menu_data.js"

http://64.23.96.234/new-design/includes/head.html

http://64.23.96.234/new-design/includes/head2.html

This tells me it is not a problem with .shtml extension. It has to do with "showmenu=" and "url=" being used together.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I'll work on it and let you know. One thing, can you get the calls for the files out of the table and put them 1st thing after the body tag, this means it's part of the document.body and will be the first thing built before anything else. I'm not saying that's the problem, only that being in the table like that might cause problems in some browsers.

Ruth
redbeard
Advanced
Advanced
Posts: 12
Joined: Mon Aug 28, 2006 6:29 pm

Post by redbeard »

Thanks for looking into this Ruth, I hope you find an answer.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Well, I have no idea why but..... I put your main page and the Eclipse home page up at mine, I even saved them as shtml and I've set up the directory structure to be exactly what you have except for the main domain, and it works fine.

This is my structure

main [poems2u.com] - subdirectory is new-design, then under that are code, images, includes, Products, Scripts.

I then uploaded the files to the corresponding folder and I changed the one link in the menu_data file to go to the poems2u site instead of to yours.

Try this link, mouseover the Products link and then click the Eclipse item. That is the only page I made for the test.

As you see the menu is there. So, I don't know what's going on at your site.

The one change I made was to move the call for the files to just after the body tag, but you tried that and it didn't work.

Let me know when you've check this so I can remove the pages since everything is pointing to your site.

Ruth
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Can I take these files down?

Ruth
redbeard
Advanced
Advanced
Posts: 12
Joined: Mon Aug 28, 2006 6:29 pm

Post by redbeard »

Yea Go ahead, I was unable to figure it out, I am currently looking into another solution. Thanks for you help.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Thanks. I just tried the link and it seems you got it fixed :)

Ruth
Post Reply