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

Help with upgrade error


Poster: drumbo
Dated: Monday April 24 2006 - 20:07:40 BST

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();


Poster: Ruth
Dated: Tuesday April 25 2006 - 0:50:45 BST

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.

Code:
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();


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


Poster: drumbo
Dated: Tuesday April 25 2006 - 20:14:50 BST

Thanks Ruth.

I did replace all three (+ the modules in use), but it doesn't work. However at this stage my whole site has decided to have the tuesday blues. Not sure if it is menu related. anyway it is at test.drumanda.net


Poster: Ruth
Dated: Wednesday April 26 2006 - 3:45:20 BST

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


Poster: drumbo
Dated: Thursday April 27 2006 - 17:04:55 BST

Hi again Ruth,

I reloaded the site (deleted all the cache on my local device and uploaded all the data to the server) and now it seems to work ok - I must have corrupted something on either the upload or on a cached version.

Again my thanks