Problem upgrading from 5.0 to 5.02

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ApexSBS
Beginner
Beginner
Posts: 8
Joined: Thu Oct 23, 2003 10:40 pm

Problem upgrading from 5.0 to 5.02

Post by ApexSBS »

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.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Problem upgrading from 5.0 to 5.02

Post by kevin3442 »

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
ApexSBS
Beginner
Beginner
Posts: 8
Joined: Thu Oct 23, 2003 10:40 pm

Post by ApexSBS »

The menu just doesn't appear and I get an Object Expected error. I replace with the old files and the menu returns.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
ApexSBS
Beginner
Beginner
Posts: 8
Joined: Thu Oct 23, 2003 10:40 pm

Post by ApexSBS »

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.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
ApexSBS
Beginner
Beginner
Posts: 8
Joined: Thu Oct 23, 2003 10:40 pm

Post by ApexSBS »

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).
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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

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

Post by John »

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.
John
ApexSBS
Beginner
Beginner
Posts: 8
Joined: Thu Oct 23, 2003 10:40 pm

Post by ApexSBS »

Sorry about that. Just click on Wine Cellars for example and enter the site. The menu is everywhere else inside the site.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

<SCRIPT language=JavaScript src="milonic_src.js" type="text/javascript"></SCRIPT> 
<SCRIPT language=JavaScript src="menu_data.js" type="text/javascript"></SCRIPT>
with:

Code: Select all

<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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

OK - everybody hold it! Customers who keep things hidden from the team have to wait until the following day... :roll:
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
Post Reply