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

Problem upgrading from 5.0 to 5.02


Poster: ApexSBS
Dated: Wednesday February 18 2004 - 17:17:11 GMT

I assumed (erroneously, obviously) that all I needed to do was replace the milonic_src, mmenudom, and mmenuns4 files (with license entered) and I'd be set. Wrong.

None of the documentation addresses upgrades so not quite sure what what I might be missing.

Re: Problem upgrading from 5.0 to 5.02


Poster: kevin3442
Dated: Wednesday February 18 2004 - 17:27:04 GMT

Hi,
ApexSBS wrote:
I assumed... that all I needed to do was replace the milonic_src, mmenudom, and mmenuns4 files...

You assumed correctly... download an update, unzip it, then upload milonic_src.js, mmenudom.js, and mmenuns4.js to your web server, replacing the older versions of these two files.

If you can tell us what didn't work as expected after you updated, then we might be able to figure out what went wrong.

Kevin


Poster: ApexSBS
Dated: Wednesday February 18 2004 - 17:29:31 GMT

The menu just doesn't appear and I get an Object Expected error. I replace with the old files and the menu returns.


Poster: Maz
Dated: Wednesday February 18 2004 - 17:30:35 GMT

Absolutley, you are correct, just replace those three js files. (keeping your menu_data.js

If in doubt try again, maybe the files got switched, not all were loaded, the path got changed, sounds like a slip somewhere.

Regards,
maz


Poster: ApexSBS
Dated: Wednesday February 18 2004 - 17:40:45 GMT

This is why I'm a bit frustrated. I simply copied the new files over, made sure the license code is there, but the menu fails to load.


Poster: Maz
Dated: Wednesday February 18 2004 - 17:51:04 GMT

Perhaps you should give us a url to see.

Is it possible that your editor is adding characters, perhaps its not set to plain text but to rich text. If you are not sure try uploading the menu without altering anything like the license number. If that works then it may be your text editor is doing something.

Regards,
maz


Poster: ApexSBS
Dated: Wednesday February 18 2004 - 18:07:54 GMT

I'm not using any tools I didn't use to build this with originally (notepad, dreamweaver) so I don't have extraneous text included.

Because of issues like this, I tried the menu upgrade on my development server first.

To see the 5.0 menu working on our production server: http://apexwinecellars.com/

I actually run three instances of the menu and have it in an include, but as you can see - it runs just fine as is (5.0).


Poster: Maz
Dated: Wednesday February 18 2004 - 18:26:11 GMT

Someone else? I can't even figure out where the menu is.

maz


Poster: John
Dated: Wednesday February 18 2004 - 20:27:04 GMT

Somehow we need to be able to see the failure. The working version kinda doesn't help... :roll:

Addendum: I don't see any menu code on the page you posted above.


Poster: ApexSBS
Dated: Wednesday February 18 2004 - 20:39:23 GMT

Sorry about that. Just click on Wine Cellars for example and enter the site. The menu is everywhere else inside the site.


Poster: kevin3442
Dated: Wednesday February 18 2004 - 21:02:46 GMT

The problem is that you are trying to updgrade from Beta Release Candidate (RC) 9 to version 5.02. Including just the major RCs, that's a jump of over 40 revisions. The menu code is a little different now, and the way the scripts are loaded into a page is different... That's why you're getitng the object expected error... something in milonic_src.js can't find a function or value it's looking for in mmenudom.js, because that file hasn't been loaded into the page.

Once you've uploaded the new milonic_src.js, mmenudom.js and mmenuns4.js, you need to replace the following code in your html:
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript src="menu_data.js" type="text/javascript"></SCRIPT>

with:
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script   language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");      
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>

to load the menu scripts. That shouldn't be too difficult if, as you say, you're using includes. At first glance, your menu_data.js file looks OK, but you may find that it needs some fine tuning after the update.

Hope that helps,

Kevin


Poster: John
Dated: Wednesday February 18 2004 - 21:03:19 GMT

OK - everybody hold it! Customers who keep things hidden from the team have to wait until the following day... :roll:


Poster: John
Dated: Wednesday February 18 2004 - 21:04:38 GMT

OK, now we've got that taken care of...

I see three menus (with subs here and there) on the left. It's not been a good day, so kindly describe the problem again, please.