Another "Menu doesn't display in IE unless I refresh&qu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
glennmsmith
Beginner
Beginner
Posts: 3
Joined: Mon May 23, 2005 1:22 pm

Another "Menu doesn't display in IE unless I refresh&qu

Post by glennmsmith »

Looking at previous messages on the forum, it looks like others might be experiencing similar problems to me.

When I load my web page up in IE it gives me an error and the (two) menus do not display. When I press Ctrl-Refresh, the page reloads, menus display, no errors.

I am running Windows 2000 (latest patches), IE. 6.0.2800.1106, and am using the latest (purchased a license Saturday) v5 of Milonic. And I'm running it under Tomcat 5.5.9 though that's probably irrelevant.

Excellent product by the way (except for this little problem-ette I'm having!).

The problem only happens when the IE cache is emptied first before loading the page. Subsequent loads (ie. after the refresh) are fine.

Turning Javascript debugging on, IE. reports the problem as being at: "Line: 21, Char: 27769, Error: Permission Denied, Code: 0, URL: test.html".

Hope you can help. As the Website is still under-development at the moment, I don't have a URL to post for you to test this, but I've supplied stripped-down files below which do give me the problem described.



My test HTML file is this:

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

<html>
<head>
<title>Under Development</title>
</head>
<body>
<!-- include menus -->
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
if(ns4) _d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="reports_menu.js"></script>
<script type="text/javascript" src="performance_indicators_menu.js"></script>
</body>
</html>

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

And my two menu files are:

----------------------------------------------------------------------
reports_menu.js:
----------------------------------------------------------------------


_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;

with(menuStyle1=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="images/arrow.gif";
subimagepadding=2;
}

with(mainMenu=new menuname("MainMenu")){
style=menuStyle1;
alwaysvisible=1;
left=10;
top=250;
overflow="scroll";
itemwidth=190;
aI("status=Back To Home Page;text=Home;url=index.jsp;");
aI("status=Log Out of HiBS;text=Log Out;url=logout.jsp;");
aI("showmenu=ClinicalIndicators;text=Clinical Indicators;");
aI("showmenu=FiscalYear;text=Fiscal Year;");
}

with(mainMenu=new menuname("ClinicalIndicators")){
style=menuStyle1;
aI("showmenu=DeathsAfterSurgery;text=Deaths After Surgery;");
aI("text=Re-Admissions After Surgery;url=readmissions_after_surgery.jsp;")
}

with(mainMenu=new menuname("DeathsAfterSurgery")){
style=menuStyle1;
aI("text=Deaths After Surgery;url=deaths_after_surgery.jsp;")
aI("text=Breakdown;url=deaths_after_surgery_breakdown.jsp;")
aI("text=By Socio-Economic Factor;url=deaths_after_surgery_sef.jsp;")
aI("text=By Socio-Economic Index;url=deaths_after_surgery_sei.jsp;")
}


with(mainMenu=new menuname("FiscalYear")){
style=menuStyle1;
aI("text=Performance Indicators;url=performance_indicators.jsp;");
aI("text=Top 10 HRGs;url=top_ten_hrgs.jsp;");
aI("text=Data Quality;url=data_quality.jsp;");
aI("text=Day Cases;url=day_cases.jsp;");
}


drawMenus();



----------------------------------------------------------------------
and performance_indicators_menu.js:
----------------------------------------------------------------------

_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;


with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="8pt";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
image="images/orangedots.gif";
imagepadding=6;
offbgcolor="#1B2C85";
offcolor="#ffffff";
onbgcolor="#CC6600";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
overimage="images/whitedots.gif";
padding=6;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#ffffff";
separatorsize=1;
subimage="images/arrow.gif";
subimagepadding=2;
}

with(submenuStyle=new mm_style()){
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="8pt";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#82B6D7";
offcolor="#000000";
onbgcolor="#DC9B5B";
oncolor="#000000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#758CC9";
separatorsize=1;
subimage="images/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Top Menu")){
style=menuStyle;
alwaysvisible=1;
itemheight=20;
itemwidth=128;
left=220;
top=17;
orientation="horizontal";
aI("align=center;status=Overview;text=OVERVIEW;clickfunction=activatePage(1,null,null);");
aI("align=center;status=Selection Criteria;text=QUERY;clickfunction=activatePage(2,null,null);");
aI("align=center;showmenu=Generate;text=GENERATE;");
}

with(milonic=new menuname("Generate")){
style=submenuStyle;
itemheight=15;
itemwidth=200;
aI("align=left;showmenu=AverageEpisodeDuration;text=Average Episode Duration;");
aI("align=left;showmenu=DayCaseRate;text=Day Case Rate;");
}

with(milonic=new menuname("AverageEpisodeDuration")){
style=submenuStyle;
itemheight=15;
itemwidth=100;
aI("text=As a Chart;clickfunction=activatePage(3,'chart','AverageEpisodeDuration');");
aI("text=As a Table;clickfunction=activatePage(3,'table','AverageEpisodeDuration');");
}

with(milonic=new menuname("DayCaseRate")){
style=submenuStyle;
itemheight=15;
itemwidth=100;
aI("text=As a Chart;clickfunction=activatePage(3,'chart','DayCaseRate');");
aI("text=As a Table;clickfunction=activatePage(3,'table','DayCaseRate');");
}

drawMenus();
glennmsmith
Beginner
Beginner
Posts: 3
Joined: Mon May 23, 2005 1:22 pm

Post by glennmsmith »

Additional info, I turned on the script debugging option in IE and found that it is falling over in milonic_src.js, and the following is highlighted:

_Lhr=_L.href


Hope that is of some help - I could really really do with a fix for this purleeeese?

Glenn
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Put your code up on my server (NO changes at all except for calling the menu code from my site). I'm not seeing any errors indicated. Both menus load the first time.
John
glennmsmith
Beginner
Beginner
Posts: 3
Joined: Mon May 23, 2005 1:22 pm

Post by glennmsmith »

John

Interestingly, neither do I see errors. So perhaps it's the way in which my local PC has been configured to run TOMCAT. I'll look into it further, but in the mean time, thanks for what you did.

Glenn
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You're welcome. That's why we get the big bucks... :roll:

BTW, what is Tomcat?
John
Post Reply