Hi,
I just upgraded to the latest version and now my menu has stopped working - and for the life of me I cannot figure out why. Can someone take a look and let me know what stupid mistake I have made
Thanks
--------------
function mm_openUrl(url) { menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); if (hmenu==-1) {hmenu=""} else {hmenu = "&hmenu=" + hmenu} if (pmenu==undefined) {pmenu=""} else {pmenu = "&pmenu=" + pmenu} url+="&menu="+menu+pmenu+hmenu; window.location.href = url; } function mm_openUrl1(url) { testing = document.search.CityCode.value; menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); if (hmenu==-1) {hmenu=""} else {hmenu = "&hmenu=" + hmenu} if (pmenu==undefined) {pmenu=""} else {pmenu = "&pmenu=" + pmenu} url+="?PGDesc=TheWeather&menu="+menu+pmenu+hmenu+"&citycode="+testing; window.location.href = url; } function fillform() { menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); document.search.menu.value = menu; document.search.pmenu.value = pmenu; document.search.hmenu.value = hmenu; }
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150; buildAllMenus = true;
_subOffsetTop=0;
_subOffsetLeft=-2;
with(HeadersStyle=new mm_style()){
bordercolor="#66CCFF";
borderstyle="solid";
borderwidth=1;
fontfamily="Trebuchet MS, Georgia, Times New Roman, Times, serif";
fontsize="13px";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#E3E9F4";
headercolor="#666";
offbgcolor="#ffffff";
offcolor="#666";
onbgcolor="#ccffcc";
oncolor="#666";
outfilter="randomdissolve(duration=0.5)";
overfilter="Fade(duration=0.2);
Alpha(opacity=90);
Shadow(color=#777777, Direction=145, Strength=5)";
padding=2;
imagepadding=1;
pagebgcolor="#ccffcc";
pagecolor="black";
separatorsize=0;
subimage="/images/arrow.gif";
subimagepadding=2; }
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=30;
overflow="scroll";
style=HeadersStyle;
top=140;
aI("align=center;separatorsize=1;separatorcolor=#66CCFF;fontweight=bold;text=Navigation;type=header;");
aI("image=/images/Home.gif;status=Home;text=Home;tooltip=Click here to go back to the main page;url=javascript:mm_openUrl('/?PGDesc=Home');");
aI("image=/images/Login.gif;status=Login;text=Login;tooltip=Click here to login;url=javascript:mm_openUrl('/ASPScripts/login.asp?PGDesc=Login');");
aI("image=/images/Registration.gif;status=Registration;text=Registration;tooltip=Click here to register on our website;url=javascript:mm_openUrl('/ASPScripts/registration.asp?PGDesc=Registration');");
aI("image=/images/Change_Password.gif;status=Change Password;text=Change Password;tooltip=Click here to change your password;url=javascript:mm_openUrl('/ASPScripts/Change_Password.asp?PGDesc=Change Password');"); }
drawMenus();
Help with upgrade error
Hi,
I just made a menu file from what you posted and put it on a blank html page and it seems to work fine. I did get an unterminated string error, though I'm not sure if that was from the way it got posted here or from your real data file. Anyway, here is the code as I have it and as it worked.
If that is not the problem we will need to see a page to see what's up.
When you upgraded did you replace your 3 base menu files? You must replace all three of them, the only thing you don't replace is your own created data file.
Ruth
I just made a menu file from what you posted and put it on a blank html page and it seems to work fine. I did get an unterminated string error, though I'm not sure if that was from the way it got posted here or from your real data file. Anyway, here is the code as I have it and as it worked.
Code: Select all
function mm_openUrl(url) { menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); if (hmenu==-1) {hmenu=""} else {hmenu = "&hmenu=" + hmenu} if (pmenu==undefined) {pmenu=""} else {pmenu = "&pmenu=" + pmenu} url+="&menu="+menu+pmenu+hmenu; window.location.href = url; } function mm_openUrl1(url) { testing = document.search.CityCode.value; menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); if (hmenu==-1) {hmenu=""} else {hmenu = "&hmenu=" + hmenu} if (pmenu==undefined) {pmenu=""} else {pmenu = "&pmenu=" + pmenu} url+="?PGDesc=TheWeather&menu="+menu+pmenu+hmenu+"&citycode="+testing; window.location.href = url; } function fillform() { menu = _itemRef; pmenu = getParentItemByItem(_itemRef); hmenu = getParentItemByItem(getParentItemByItem(_itemRef)); document.search.menu.value = menu; document.search.pmenu.value = pmenu; document.search.hmenu.value = hmenu; }
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150; buildAllMenus = true;
_subOffsetTop=0;
_subOffsetLeft=-2;
with(HeadersStyle=new mm_style()){
bordercolor="#66CCFF";
borderstyle="solid";
borderwidth=1;
fontfamily="Trebuchet MS, Georgia, Times New Roman, Times, serif";
fontsize="13px";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#E3E9F4";
headercolor="#666";
offbgcolor="#ffffff";
offcolor="#666";
onbgcolor="#ccffcc";
oncolor="#666";
outfilter="randomdissolve(duration=0.5)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777, Direction=145, Strength=5)";
padding=2;
imagepadding=1;
pagebgcolor="#ccffcc";
pagecolor="black";
separatorsize=0;
subimage="/images/arrow.gif";
subimagepadding=2; }
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=30;
overflow="scroll";
style=HeadersStyle;
top=140;
aI("align=center;separatorsize=1;separatorcolor=#66CCFF;fontweight=bold;text=Navigation;type=header;");
aI("image=/images/Home.gif;status=Home;text=Home;tooltip=Click here to go back to the main page;url=javascript:mm_openUrl('/?PGDesc=Home');");
aI("image=/images/Login.gif;status=Login;text=Login;tooltip=Click here to login;url=javascript:mm_openUrl('/ASPScripts/login.asp?PGDesc=Login');");
aI("image=/images/Registration.gif;status=Registration;text=Registration;tooltip=Click here to register on our website;url=javascript:mm_openUrl('/ASPScripts/registration.asp?PGDesc=Registration');");
aI("image=/images/Change_Password.gif;status=Change Password;text=Change Password;tooltip=Click here to change your password;url=javascript:mm_openUrl('/ASPScripts/Change_Password.asp?PGDesc=Change Password');");
}
drawMenus();
When you upgraded did you replace your 3 base menu files? You must replace all three of them, the only thing you don't replace is your own created data file.
Ruth
Hi,
I'm not sure what problem you are having. I just went to the test url you gave and the menu shows and works fine. I click Home it goes there, login goes to the login page, registration to registration and change password to that page. This is in IE and FF.
Are you still having the problem? If so, try going back to the 5.746 version, since the one you have is a pre-release and see if that clears it up. If so, I'll have to post to Andy with all the info as to browser and OS so he can take a look. Let me know.
Ruth
I'm not sure what problem you are having. I just went to the test url you gave and the menu shows and works fine. I click Home it goes there, login goes to the login page, registration to registration and change password to that page. This is in IE and FF.
Are you still having the problem? If so, try going back to the 5.746 version, since the one you have is a pre-release and see if that clears it up. If so, I'll have to post to Andy with all the info as to browser and OS so he can take a look. Let me know.
Ruth