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

Menu not showing up on some computers [Solved]


Poster: eclipz
Dated: Thursday April 28 2005 - 22:11:59 BST

We're having a problem where the menu displays properly on some PCs and not at all on others. We've gone through the "do you have javascript enabled" and other checklist items. But some people are still having trouble.

I've read that other people have had similar issues but haven't had any success with any workarounds. Has anyone been able to determine why some computers can display the menu and others not even though the computers are set up the same.

The script is displaying two menus. Below is my code. Any help would be greatly appreciated. Thanks, Mark

------------------------------------------------------------

Code:
<script type="text/javascript" src="http://www.niakwacc.ca/menu/milonic_src.js"></script>
         <script type="text/javascript"><!--
if(ns4)_d.write("<script language=JavaScript src=http://www.niakwacc.ca/menu/mmenuns4.js><\/script>");      
  else _d.write("<script language=JavaScript src=http://www.niakwacc.ca/menu/mmenudom.js><\/script>");
//-->
      </script>
         <SCRIPT language=JavaScript src="http://www.niakwacc.ca/menu/menu_data.js" type=text/javascript></SCRIPT>
         <SCRIPT language=JavaScript src="http://www.niakwacc.ca/menu/menu_data_new.js" type=text/javascript></SCRIPT>

-----------------------------------------

Code:
<script><!--
with(firstMenu=new menuname("Main Menu")){
style=topmenu;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=BOOK A TEE TIME;url=http://www.teeoff.com/resv_logon_public.asp?webid=niakwamb;target=_blank;showmenu=teetime;");
aI("text=HANDICAP;url=http://www.northernsystems.com/cgi-bin/hcapstat.exe?CID=niakwa&GID=&sbn=on&ACTION=Submit;target=_blank;");
aI("text=EVENTS CALENDAR;url=http://www.niakwacc.ca/pages/calendar2/calendar.php;showmenu=calendar;");
aI("text=CURRENT NEWS;url=http://www.niakwacc.ca/pages/whatsnew/index.php;showmenu=currentnews;");
aI("text=PHOTO GALLERY;url=http://www.niakwacc.ca/pages/gallery/gallery.php;");
aI("text=MEMBER ROSTER;url=http://www.niakwacc.ca/pages/memberoster.php;");
}
drawMenus();
//-->
</script>
               </div>
            </td>
   </tr>
   <tr height="31">
      <td colspan="4" height="31" background="http://www.niakwacc.ca/images/header/header_08.gif">
               <div align="center">
                  <script><!--
with(secondMenu=new menuname("")){
style=bottommenu;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=PRO SHOP;url=http://www.niakwacc.ca/pages/proshop.php;showmenu=proshop;");
aI("text=BOARD OF GOVERNORS;url=http://www.niakwacc.ca/pages/board.php;showmenu=board;");
aI("text=MEMBER INFORMATION;url=http://www.niakwacc.ca/pages/memberinfo.php;showmenu=members;");
aI("text=TOURNAMENTS;url=http://www.niakwacc.ca/pages/tournaments.php;showmenu=tournaments;");
aI("text=WEB SITE LINKS;url=http://www.niakwacc.ca/pages/resources.php");
aI("text=PRIVACY POLICY;url=http://www.niakwacc.ca/pages/privacy.php;showmenu=privacy;");
aI("text=CONTACT;url=http://www.niakwacc.ca/pages/contact.php;showmenu=contact;");
}
drawMenus();
//-->
</script>

---------------------------------------------------

Code:
with(topmenu=new mm_style()){
bgimage="http://www.niakwacc.ca/images/site/topmenubkgd.gif";
oncolor="#cccc99";
offcolor="#ffffff";
separatorcolor="#666699";
separatorsize="1";
padding=8;
fontsize="70%";
fontstyle="normal";
fontfamily="Arial, Verdana, Tahoma";
subimage="http://www.niakwacc.ca/menu/arrow.gif";
subimagepadding="1";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

with(bottommenu=new mm_style()){
bgimage="http://www.niakwacc.ca/images/site/bottommenubkgd.gif";
oncolor="#cccc99";
offcolor="#ffffff";
padding=5;
fontsize="60%";
fontstyle="normal";
fontfamily="Arial, Verdana, Tahoma";
subimage="http://www.niakwacc.ca/menu/arrow.gif";
subimagepadding="1";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


Poster: Ruth
Dated: Friday April 29 2005 - 0:10:01 BST

Is there a link to the page so we can see the actual page? You start with the menu file calls but then you have the next thing beginning with a script tag, and an ending div tag, but no beginning div tag, and also some table codes but no beginning table codes. We really need to either see the page, or have you post all the code from the page so we can try and build a page and test to see what's happening

Ruth


Poster: Ruth
Dated: Friday April 29 2005 - 0:29:06 BST

I looked at the two menu_data files you are calling. They have the same styles in them with the same names. Are you using the same styles for all menus, main and sub? Can you tell us what you are tyring to do? Are you trying to have two visible menus one at the top and one at the bottom with both using the same style? If that's the case you just need to have one menu_data.js file, and in that file you'd have all the submenus you need and you'd put the two 'main' menus on the page in the table cells where you want them, naming them different i.e. main menu, and main menu 2 perhaps. Whatever names you want.

Ruth


Poster: eclipz
Dated: Friday April 29 2005 - 14:53:12 BST

Here is the link to the menu file. I am using an include script for placing the header file on the content pages.

http://www.niakwacc.ca/menu/header.php

All the files can be found in http://www.niakwacc.ca/menu/

Thanks, Mark


Poster: Ruth
Dated: Friday April 29 2005 - 16:22:16 BST

Hi Mark,

Can you tell us which computers and operating systems are causing the problem? I haven't had one since I can see the menu.

One thing you need to do is get the menu out of the divs. That can cause problems because the menu is made up of divs spans etc. I see you are trying to align them to the center and assume that is why you have the divs. You can center it by surrounding it with a table you have set to center. Do not put in a table size. It should size to the menu size automatically.
Code:
<TD background=header_07.gif colSpan=4 height=34>
   <table align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
    <td>
     
      <SCRIPT><!--
with(firstMenu=new menuname("Main Menu")){
style=topmenu;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=BOOK A TEE TIME;url=http://www.teeoff.com/resv_logon_public.asp?webid=niakwamb;target=_blank;showmenu=teetime;");
aI("text=HANDICAP;url=http://www.northernsystems.com/cgi-bin/hcapstat.exe?CID=niakwa&GID=&sbn=on&ACTION=Submit;target=_blank;");
aI("text=EVENTS CALENDAR;url=http://www.niakwacc.ca/pages/calendar2/calendar.php;showmenu=calendar;");
aI("text=CURRENT NEWS;url=http://www.niakwacc.ca/pages/whatsnew/index.php;showmenu=currentnews;");
aI("text=PHOTO GALLERY;url=http://www.niakwacc.ca/pages/gallery/gallery.php;");
aI("text=MEMBER ROSTER;url=http://www.niakwacc.ca/pages/memberoster.php;");
}
drawMenus();
//-->
</SCRIPT></td>
</tr>
</table>
     </TD>
You'd do the same thing for the bottom menu.

Try that and see if that cures the other problems

Ruth


Poster: eclipz
Dated: Friday April 29 2005 - 17:56:11 BST

At our office everything works fine. We are in the proofing stage of the site and some clients that are proofing the site that can't see it while others can.

The systems that can't see the menu are WINXP, Service Pack 2, Java Enabled. Internet Security set to medium. The funnything is other users who have the exact same set up can see the menu.

We are working with the people who can't see the menu but it is difficult from our end not being able to duplicate their situation. We also have the menu working in Firefox, Netscape and Safari on both PC and Macs. I'm really going out of my mind on this one. I just want to try to figure out if it's the code or the computers.

I will try the div tags thing though.

Thanks,
Mark


Poster: Ruth
Dated: Friday April 29 2005 - 18:36:40 BST

Hi Mark,

You do need to change from the div to the table as some browsers, one I'm pretty sure is ie on the mac, will go nuts.

As to the other issue, I will bet it's service pack 2 that is causing the problem. There were some posts about that when people first got it. HERE is one that might help and give you some direction.

Hope that helps.

Ruth


Poster: kevin3442
Dated: Saturday April 30 2005 - 0:36:02 BST

Hi Mark,

At the clien't site, are you loading the pages over the web (e.g., from a development site)?

On the machines that don't work, are they using any sort of firewall software (Zone Alarm, etc.) or do they have Norton Internet Security (or whatever that blasted thing is called)?

Are you getting any sort of error message in IE (exclamation point in the left side of the status bar or a message on your screen)?

Cheers,

Kevin


Poster: kevin3442
Dated: Saturday April 30 2005 - 0:45:48 BST

Hi again Mark,

Just visited your test page. header.php is loading both menu_data.js and menu_data_new.js. These files appear almost identical, with the exception of one line of code (just a cursory view). In any case, you have lots of duplicate menu names and menu style names. This could be the root of the problem. Load one or the other, but not both and see what happens.

Cheers,

Kevin


Poster: Ruth
Dated: Saturday April 30 2005 - 4:41:12 BST

I have just one last question, after looking at your first post again, the code you posted and the php in the url. Are you using some kind of templates, like overall header, body footer etc? I just want to make sure we have all the information on how you are trying to place your menus.

Ruth


Poster: eclipz
Dated: Monday May 9 2005 - 17:08:36 BST

Hello,

In regards to Kevin's question, I read somewhere on this site or forum that when you have two menus on the same page to have them looking for separate menu_data files. Hence the menu_data.js and the menu_data_new.js file. But that didn't solve the problem of some people not being able to see the menu.

Ruth,
Yes, we set up the site so that it is using include scripts. The header file is being called into the content pages by using this code

Code:
include("http://www.niakwacc.ca/menu/header.php");


I had one of the people visit the milonic website and they said they can see the menu on the site. Then I had them visit the table sample page. Again they were able to see the milonic menu and the sample table menu. At that point I downloaded the sample table file and posted that on the Niakwa website. When that individual went to view the page he couldn't see the table menu. So I'm not sure if it's something with the webserver or the milonic code we are using.

Again, it's confusing because most of the members can see the menu, but when you have 10 individuals who can't see it, we have to find out what's wrong.

My next test I want to try is the noscript suggestion. If the members who can't see the menu get the the noscript text, maybe that gives us a better idea of what's going on.

Thanks again,
Mark


Poster: eclipz
Dated: Monday May 9 2005 - 17:15:10 BST

Hello again,

As for the Service Pack 2 suggestion, we don't have a problem seeing the script on our WinXP computers with SP2 installed. We've also checked with the members that are having trouble seeing the menu and they do have SP2 installed as well. Also we are using the most recent versions of Milonic. Version 5.722 (well, I see there is Version 5.723 now, but the update doesn't really involve us.) I will copy the new version over later today though.

Mark


Poster: Ruth
Dated: Monday May 9 2005 - 20:53:47 BST

Hi Mark,

Try a couple of things

1) get rid of one of those menu data files. They are both the same containing exactly the same information.

After you do that have them check the page. If they still can't see it

2) change the <div align=center in which you are placing the menu. Get rid of that and make it a table so you would add this for the opening div code
Code:
<table cellpadding=0 cellspacing=0 border=0 align="center"><tr><td>
and this for the closing div
Code:
</td></tr></table>
you need to do that for both opening and closing divs. That will also align the menu where it is now but it gets it out of the divs which can cause problem.

Have them check it again.

If that doesn't work, I suggest that you copy the source code from the header.php page when it's on the web, then make an html page out of it and upload that and see if they can see it. If they can it's someplace in the includes I have to think.

Ruth


Poster: kevin3442
Dated: Tuesday May 10 2005 - 0:02:47 BST

Hi Mark,
eclipz wrote:
...In regards to Kevin's question, I read somewhere on this site or forum that when you have two menus on the same page to have them looking for separate menu_data files. Hence the menu_data.js and the menu_data_new.js file. But that didn't solve the problem of some people not being able to see the menu.

I wasn't really asking a question there; I was mainly pointing out that you had two separate _data.js files that were nearly identical in content, with duplicate style and menu names. Having two separate files is not a problem. Some people who have two separate main menus like to define them in two separate .js files. Others put all of the code for both main menus one .js file. Either way is fine; it's really just a matter of preference (personally, I prefer one file if both menus will be on every page). However, you cannot have duplicate menu style names and menu names; that causes problems. Each style and each menu should have a unique name, whether they're defined in one menu_data.js file, or across multiple _data.js files.

I see that your test site has changed a little since I last visited; you no longer appear to have duplicate style and menu names. Nicely done. You do have one major problem remaining in the menu code for your second main menu:
Code:
with(secondMenu=new menuname("")){

You're passing a null menu name. That'll cause big problems... gotta give that menu a name... a unique name! That is probably the root of the menus not appearing problem.

You may also run into some positional issues because the tables containing your main menus are inside of DIVs. The menu doesn't generally like to be insde of DIVs, although those issues may not affect your targeted set of browsers.

Hope that helps,

Kevin


Poster: eclipz
Dated: Tuesday May 17 2005 - 21:02:56 BST

So something like this?

Code:
with(secondMenu=new menuname("Secondary Menu")){


I will ask the people that can't see the menu to empty their cache and visit the site again. Is there anything that needs to be done with "new menuname" in the code. Both the top and bottom menus have the same text after the = sign.

With the changes, the menus will look like this.

Top Menu
Code:
with(firstMenu=new menuname("Main Menu")){


Bottom Menu
Code:
with(secondMenu=new menuname("Secondary Menu")){


Poster: kevin3442
Dated: Wednesday May 18 2005 - 0:02:54 BST

Hi Mark,

You have it right. What's important in the following construct:

Code:
with(firstMenu=new menuname("Main Menu")){


is firstMenu and "Main Menu". These are the only two things that can change from menu to menu. In fact, the first part (firstMenu in this case) is usually unimportant; most people just stick with the standard milonic for each and every menu, as in

Code:
with(milonic=new menuname("Main Menu")){


It's the second part... the string between the double quotes... that's most important. That's the name by which the menu is known; "Main Menu" in this case. Each menu should be given a unique name inside of the double quotes.

Hope that helps,

Kevin


Poster: eclipz
Dated: Wednesday May 18 2005 - 16:15:25 BST

Just another quick question. In regards to the code

Code:
with(firstMenu=new menuname("Main Menu")){


doesn't "firstMenu" relate back to the menu_data.js file? In the data file don't you need to have the "firstMenu", "secondMenu" so that the drop down menus know where to go? Below is the script from the menu_data.js file.


Code:
_menuCloseDelay=150           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset


with(topmenu=new mm_style()){
bgimage="http://www.niakwacc.ca/images/site/topmenubkgd.gif";
//onbgcolor="#666699";
oncolor="#cccc99";
//offbgcolor="#666699";
offcolor="#ffffff";
//bordercolor="#000000";
//borderstyle="solid";
//borderwidth=0;
separatorcolor="#666699";
separatorsize="1";
//separatorpadding="1":
padding=8;
fontsize="70%";
fontstyle="normal";
fontfamily="Arial, Verdana, Tahoma";
//pagecolor="black";
//pagebgcolor="#663399";
//headercolor="#000000";
//headerbgcolor="#ffffff";
subimage="http://www.niakwacc.ca/menu/arrow.gif";
subimagepadding="1";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

with(bottommenu=new mm_style()){
bgimage="http://www.niakwacc.ca/images/site/bottommenubkgd.gif";
//onbgcolor="#333366";
oncolor="#cccc99";
//offbgcolor="#333366";
offcolor="#ffffff";
//bordercolor="#000000";
//borderstyle="solid";
//borderwidth=0;
//separatorcolor="#ffffff";
//separatorsize=".5";
//separatorpadding="1":
//separatorheight=1
//separatoralign='center';
padding=5;
fontsize="60%";
fontstyle="normal";
fontfamily="Arial, Verdana, Tahoma";
//pagecolor="black";
//pagebgcolor="#663399";
//headercolor="#000000";
//headerbgcolor="#ffffff";
subimage="http://www.niakwacc.ca/menu/arrow.gif";
subimagepadding="1";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(firstMenu=new menuname("teetime")){
style=topmenu;
overflow="scroll";
aI("text=VIEW TEE SHEET;url=http://www.niakwacc.ca/pages/teesheet.php;");
aI("text=WEATHER;url=http://www.theweathernetwork.com/features/golf/Pages/CAMB0355.htm;target=_blank");
}


with(firstMenu=new menuname("calendar")){
style=topmenu;
aI("text=GOLF EVENTS;onbgcolor=656d26;offbgcolor=98a356;url=http://www.niakwacc.ca/pages/calendar2/calendar-golf.php;");
aI("text=CLUB SOCIAL EVENTS;onbgcolor=cc9933;offbgcolor=F1BF19;url=http://www.niakwacc.ca/pages/calendar2/calendar-social.php;");
aI("text=SPECIAL EVENTS;onbgcolor=8c93e4;offbgcolor=4c5394;url=http://www.niakwacc.ca/pages/calendar2/calendar-special.php;");
}


with(firstMenu=new menuname("currentnews")){
style=topmenu;
aI("text=NEWSLETTER;url=http://www.niakwacc.ca/pages/newsletter.php;");
}


with(secondMenu=new menuname("proshop")){
style=bottommenu;
aI("text=Specials;oncolor=ffffff;offcolor=ffffff;onbgcolor=660000;offbgcolor=990000;url=http://www.niakwacc.ca/pages/catalog/index.php?sel_category=3;;");
aI("text=Golf Lessons;url=http://www.niakwacc.ca/pages/proshop.php#lessons;");
aI("text=Pro Shop Hours;url=http://www.niakwacc.ca/pages/proshop.php#hours;");
aI("text=Pro Shop Staff;url=http://www.niakwacc.ca/pages/proshop.php#emerson;");
}

with(secondMenu=new menuname("board")){
style=bottommenu;
aI("text=Board of Governors Forum;url=http://www.niakwacc.ca/forum/index.php;target=_blank");
aI("text=Ladies Executive;url=http://www.niakwacc.ca/pages/ladiesexecutive.php;");
}


with(secondMenu=new menuname("members")){
style=bottommenu;
overflow="scroll";
aI("text=Fee Schedule;url=http://www.niakwacc.ca/pages/memberinfo.php#fees;");
aI("text=House Rules;url=http://www.niakwacc.ca/pages/memberinfo.php#houserules;");
aI("text=Dress Code;url=http://www.niakwacc.ca/pages/memberinfo.php#dresscode;");
aI("text=Course Rules;url=http://www.niakwacc.ca/pages/memberinfo.php#courserules;");
aI("text=Cart Control;url=http://www.niakwacc.ca/pages/memberinfo.php#cartcontrol;");
}

with(secondMenu=new menuname("tournaments")){
style=bottommenu;
aI("text=Fixture Card-Mens & Mixed Events;url=http://www.niakwacc.ca/pages/mensfixture.php;");
aI("text=Fixture Card-Juniors & PeeWees;url=http://www.niakwacc.ca/pages/jr&pwfixture.php;");
aI("text=2005 Corporate Package;url=http://www.niakwacc.ca/pdfs/2005_Corp_Tournament_Pkg.pdf;target=_blank");
aI("text=2005 NDC Package;url=http://www.niakwacc.ca/pdfs/2005_NDC_Tournament_Banquet_Pkg.pdf;target=_blank");
}

with(secondMenu=new menuname("privacy")){
style=bottommenu;
aI("text=Terms of Use;url=http://www.niakwacc.ca/pages/termsofuse.php;");
}

with(secondMenu=new menuname("contact")){
style=bottommenu;
aI("text=Map To Course;url=http://www.mapquest.com/maps/map.adp?formtype=address&searchtype=address&country=CA&addtohistory=&address=620+Niakwa+Road&city=Winnipeg&state=MB&zipcode=R2J+2X3;target=_blank");
}

drawMenus();


Thanks,
Mark


Poster: John
Dated: Wednesday May 18 2005 - 16:31:51 BST

Nope. As Kevin carefully explained, the important part is that in quotes ("teetime", "calendar", etc.).


Poster: eclipz
Dated: Thursday May 19 2005 - 23:07:36 BST

We'll, I've cleaned up the code and now have unique menu names (between quotes) and we're still having trouble with the user seeing the menu. We were able to get him to drop off his laptop and over the next couple of days we're hoping to find the culprit.

My most recent updates are here:
http://www.niakwacc.ca/menu/

Thanks for all your help and I'll let you know if we find the problem.

Mark


Poster: eclipz
Dated: Thursday July 14 2005 - 21:29:58 BST

We'll, just following up on my previous post. We believe we found out what was causing the menu not to display on some computers.

After multiple tests on a computer (we'll call it c1) that couldn't display the menu we found out that it had to be a file conflict in the cache. We copied the cache from the c1 to a computer that could display the menu (this will be c2). What we found is that c2 then couldn't display the menu. We cleaner the cache on c1 and it was able to see the menu. We then placed the orig cache from c1 back the it couldn't see the menu.

Anyhow, the cache contained close to 100,000 files so we didn't want to spend the time trying to figure out what file was causing the conflict.

It is very odd that there was this conflict but we'll never know what was causing it.

Thanks for all your replies though.

mk


Poster: Andy
Dated: Friday July 15 2005 - 14:17:25 BST

Hi,

These things do happen from time to time - No explanation just that they do happen.

I was reading an article the other day about how CPU's are not as predictable as we like to think.

See here http://www.newscientist.com/article.ns?id=mg18725074.600

Anyway, it's probably best to forget about it as it may never ever happen again :D

Glad you figured it out though

Cheers,
Andy