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

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 0:51:57 BST

Hi,
I got my menus working just as I wanted with v5.12:
http://test.hinshawdesign.com/slplf/tes ... _club.html

I then purchased a license and downloaded v5.22 and the resulting page is here:
http://test.hinshawdesign.com/slplf/tes ... _club.html

If you view the page in Mozilla or Firefox the submenus are as wide as the viewport rather than being exactly 171px wide as they were before I purchased the license and upgraded to 5.22.

I left my data file exactly as it was in the working version and uploaded the milonic_scr.js, mmenudom.js, and mmenuns4.js files.

Has something changed in v5.22 or did I do something wrong during the purchase/upgrade process?

One other thing I noticed that I assumed would go away with the license purchase: IE5.5 (PC) throws a Javascript error ("Library not registered") and the menus don't work at all. This was the case before purchasing the license and still happens

Thanks for any help because I haven't a clue!!

Don Hinshaw


Poster: Ruth
Dated: Wednesday June 16 2004 - 2:10:34 BST

I use IE5.5 win98 and get no error when I go to the site. As to the other issue, I see it on the web, but when I downloaded the page to test it the error doesn' occur. So, without being able to reproduce it I can only make some suggestions. Try putting in itemwidth=171;
Code:
menuwidth=171;
itemwidth=171;
menualign="left"

If that doesn't work, try putting it in one of the items of the particular submenu.
Code:
aI ("image=arrow_submenu.gif;overimage=arrow_submenu_roll.gif;text=NEWS;[color=blue]itemwidth=171;[/color]url=/menusample1.php;");

You should also remove it from the div, that can cause problems in some browsers.

Ruth


Poster: Maz
Dated: Wednesday June 16 2004 - 2:38:04 BST

I have reported the problem in Firefox.

maz

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 4:24:37 BST

Thanks for the suggestions, Ruth. Unfortunately none of them worked.

Does anybody know if it is possible to step back to an earlier version and use the license? I tried pasting the license info into the various .js files where I found it, but the whole thing stopped working (no submenus displayed).

Any other ideas would be greatly appreciated as I need to support these two browsers (Mozilla and Firefox).

Thanks,
Don


Poster: Maz
Dated: Wednesday June 16 2004 - 4:34:53 BST

No its more complicated, so you only have the older unregistered one.

Andy already said 23 is coming so probably in the morning;)

maz


Poster: Ruth
Dated: Wednesday June 16 2004 - 5:56:33 BST

Hi,
You need to change the menuwidth=171; in the submenus to itemwidth=171; Make sure you take out the menuwidth, don't leave it there. I just uploaded the page and checked it in Firebird .07, Netscape 7.1, Opera 7.11 and the submenus are fine. Here's a LINK to the site to check with whatever Firefox you are using since I know mine is older. Please let me know when you've checked it so I can remove it from my site. Thanks.

Ruth

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 6:34:51 BST

Thanks Ruth,
I downloaded all your files and I'll take a look at them in the a.m.

Thanks for your help.

Don


Poster: Ruth
Dated: Wednesday June 16 2004 - 8:26:36 BST

You can't use my files, they are licensed for my site, you have to use your milonic_src.js mmenudom.js and mmenuns4.js files. The data file is yours I just changed your code of menuwidth=171; to itemwidth=171; Thanks for letting me know you got them.

Ruth


Poster: Andy
Dated: Wednesday June 16 2004 - 10:50:29 BST

Version 5.23 has been released to help combat some of the above issues.

Cheers
Andy

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 16:41:20 BST

Two questions:
Ruth: putting in itemwidth instead of menuwidth works to the extent that the menus no longer span the entire viewport, but how do I get them all te be the exact same width? Each submenu is as wide as it's contents. I'd really like them to wrap in order to maintain a consistent width.

Andy (or anyone): where do I go to download 5.23? When I go to My Licenses it only shows the download for v5.22.

Thanks for all the help thus far. You guys are great!

Don


Poster: Ruth
Dated: Wednesday June 16 2004 - 17:09:33 BST

Try it again, it seems to be the right one now. Also, go HERE and find on the page and mark "Watch This Topic' then you will get an automatic email notice whenever an update has been activated.

Ruth

Re: Mozilla problems with v5.22 (menu width all crazy)


Poster: John
Dated: Wednesday June 16 2004 - 18:34:34 BST

donH wrote:
Andy (or anyone): where do I go to download 5.23? When I go to My Licenses it only shows the download for v5.22.

Close, but wrong menu item! :D

Go to the main site at http://milonic.com/. Note in the right column the large graphic that says, "Download Version 5 Here". Click that puppy, log in to the site, and you'll get the version shown.

Also, use Ruth's suggestion just above.

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 19:51:51 BST

Sorry to keep beating this horse, but I feel like it's still not right, and I'm not sure if I am missing something. I posted two new samples with v5.23:

This version: http://test.hinshawdesign.com/slplf/tes ... _club.html
uses menuwidth and the submenus span the viewport in Mozilla, Netscape 7, and Firefox. Not what I want.

This version: http://test.hinshawdesign.com/slplf/tes ... _club.html
uses itemwidth and the menus more less behave, but they are each as wide as the longest item in them. I really need them to all be exactly the same width like they are here:
http://test.hinshawdesign.com/slplf/tes ... _club.html
which uses the unlicensed v5.12.

I am frustrated that I have changed nothing from my first test (5.12) yet the menus broke when I upgraded. (or maybe I broke them in some way I haven't figured out yet.

Is there a way to
A/ force the contents of a submenu to wrap if they exceed a specified width?
B/ back up to a previous version of the menus using the license that I just purchased?

Thanks again for any help!

Don


Poster: UEBen
Dated: Wednesday June 16 2004 - 21:26:28 BST

Hey Don, you and I seem to be having similar issues in regards to Mozilla based browsers. As you may have already noticed, Andy just responded to my post with a message about looking into fixing for this little bug:

http://www.milonic.com/forum/viewtopic.php?t=4398

Just FYI. ;)

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Wednesday June 16 2004 - 23:56:38 BST

OK, I think I have isolated one of the problems, but no real solution.
When I put the itemwidth in, the menus stop filling the viewport (as mentioned above). But the contents of the menus don't wrap in order to maintain the width I have specified. Here's the code:

Code:
with(milonic=new menuname("Samples")){
style=menuStyle;
itemwidth=171;
menualign="left"
aI("image=images/arrow_submenu.gif;overimage=images/arrow_submenu_roll.gif;text=Our History and Mission;url=/menusample1.php;");
}


When I remove the image from the aI() string the text wraps just fine:

Code:
with(milonic=new menuname("Samples")){
style=menuStyle;
itemwidth=171;
menualign="left"
aI("text=Horizontal Navigational Menu Horizontal Navigational Menu;url=/menusample1.php;");
}


How can I get it to wrap and keep my little arrow images, too?? I believe this would solve all the problems I have encountered since upgrading to 5.23.

Thanks,
Don[/code]


Poster: kevin3442
Dated: Thursday June 17 2004 - 0:11:02 BST

Hi Don,

Just a couple of suggestions:

(1) Put itemwidth=171; in your menuStyle, since that style is used for all of your submenus. Then you can remove itemwidth=171; from all of the submenu definitions

(2) Remove menualign="left" from all of the submenus. It doesn't really serve a purpose in your application. I think that you think that it does something other than what it does (did that make sense?), and I believe that left is the default behavior anyway.

(3) There's one line that's causing a problem because it refuses to wrap (which it should be doing), and that's making its menu wider than you'd like.. You can force it to wrap. I'm talking about the menu item for "How to Join, Renew or Purchase a Gift Membership". Change or Purchase to or<br>Purchase... the break tag, <br>, will force a line break and the item will wrap at that point.

(4) You have an extraneous menu defined at the bottom of your menu_data... "My Milonic". Might as well get rid of it.

(5) The overfilter definition in your menuStyle contains syntax errors; no telling what effect iof any that might have. It is currently
Code:
overfilter="//Fade(duration=0.2);Alpha(opacity=95);//Shadow(color='#777777', Direction=135, Strength=5)";

It looks as if someone was trying to comment out various chunks, but the // does not go inside the overfilter definition. To comment it out entirely, place a // at the beginning of the line. Like so
Code:
//overfilter="//Fade(duration=0.2);Alpha(opacity=95);//Shadow(color='#777777', Direction=135, Strength=5)";

Better yet, if you don't intend to use it, might as well delete that line altogether.

(6) It looks like you have your Main Menu buried three levels down in nested DIVs. The menus don't always like to be inside a div; I suppose nested divs might even be worse. Try the other stuff first, to see if that makes it more to your liking. Mess with the divs as a last resort.

Hope that helps some,

Kevin


Poster: donH
Dated: Thursday June 17 2004 - 0:44:01 BST

Kevin,
Unfortunately none of the suggestions changed anything except for inserting a <br>. I'd really rather not use a <br> and have the menu just stay at 171px wide no matter what length the text or size the font.
As you can see from this stripped down example :
http://test.hinshawdesign.com/slplf/test/itemwidth/test_no_div.html
if you mouse over the first two links, #1 contains an image and doesn't wrap and #2 doesn't have an image and it wraps at 171px.

The image seems to be causing the problem. This was not the case with version 5.12.
I'm still not clear on why I cannot use my license (5.22) with that version and if so how I would go about doing it.

Thanks,
Don


Poster: kevin3442
Dated: Thursday June 17 2004 - 2:28:08 BST

Hi Don,

Bummer. Sorry it didn't help. I think you've hit a nice clue to the problem... the image thing.

itemwidth should force wrapping... used to force wrapping, but there seems to be a problem with it now. I believe, as Ben and Andy have noted, that there seems to be a bug. I'm sure it'll be fixed in short order. Meantime, the only way to force a wrap is to use <br> (I mentioned that earlier because I thought you had asked how to force a wrap. I see now that was only part of the question)... I know it's a pain, but if you break at the right places (before the text would hit 171px out), then your menu item will end up being the width you want.

donH wrote:
I'm still not clear on why I cannot use my license (5.22) with that version and if so how I would go about doing it.

I don't think it's that you can't use it so much as it is a matter of how could you get it. There's no provision, as far as I know, for downloading earlier releases. It may be that Milonic could provide you with one if you email them, but I can't say for sure (I'm not an employee... just another user).

It may all be academic. Andy is pretty fast at fixing bugs.

Kevin


Poster: donH
Dated: Thursday June 17 2004 - 3:39:05 BST

kevin3442 wrote:
I don't think it's that you can't use it so much as it is a matter of how could you get it.


I guess my trial version of 5.12 cannot be used with my license for 5.23??

kevin3442 wrote:
It may all be academic. Andy is pretty fast at fixing bugs.


I'll keep my fingers crossed...we are getting ready to turn the code over to the client and I need to get this thing working like the original test pages that I showed them :?

Don


Poster: Maz
Dated: Thursday June 17 2004 - 6:36:27 BST

Don,

Why don't you have the subimage in global style?

You are using XHTML which means you need to use CDATA around the scripts in html.

Take a look at the begginers section of the forum, I put an example in there.

maz


Poster: John
Dated: Thursday June 17 2004 - 15:02:10 BST

donH wrote:
I guess my trial version of 5.12 cannot be used with my license for 5.23??

Why go all the way back there when you'd be missing the enhancements and bug fixes in the 11 updates since then? Not to mention, the only supported version is the current one (see the big red letters at http://www.milonic.com/menuvinfo.php).

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Thursday June 17 2004 - 16:04:03 BST

Hi John,
Only one reason: 5.12 worked the way I wanted it to, 5.23 does not.

Don


Poster: John
Dated: Thursday June 17 2004 - 16:26:42 BST

Don -

My early morning thought process is not always the best :!: :D

What I meant was - we'll get it fixed for you. Andy's the best, and he won't quit until it works right. Just a small amount of patience will do. :)

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Thursday June 17 2004 - 17:14:53 BST

Hi John,
Thanks. Sorry if my frustration is showing through. As you can imagine, I just need to get it working again and move on to other challenges! :)

Don


Poster: Andy
Dated: Thursday June 17 2004 - 17:19:26 BST

Update:

It's another bug with Mozilla.

It's having trouble setting widths if certain conditions have been met.

I'm currently having to completely rewrite ALL of the width code and as you can imagine this will take a while to get released.

I'll try and get a Pre-Release posted later today. Meanwhile the backlog of problems is getting bigger and pressure has started to build up.

We will get this fixed (I promise you) but it may take a short while

This goes for all of the other width problems we've got. The code is good but the browsers are STILL far too different, it's an absolute nightmare.

Cheers
Andy

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Thursday June 17 2004 - 17:39:53 BST

Thanks Andy,
I'll sit tight and move on to other things and just stick with 5.12 for now. I appreciate your efforts. Will I get notice of a pre-release the same way as with a regular release?

Don

Re: Mozilla problems with v5.22 (menu width all crazy)


Poster: John
Dated: Thursday June 17 2004 - 17:46:14 BST

donH wrote:
Sorry if my frustration is showing through. As you can imagine, I just need to get it working again and move on to other challenges!

Not to worry - I fully understand. Andy will get it nailed down.


Poster: Andy
Dated: Thursday June 17 2004 - 19:40:15 BST

Version 5.24 has just gone up. I've tested tested and then some and this thing seems OK now.

What I would do though is change your menuwidth properties to itemwidth. This will hopefully fix the problem.

Let me know if you find anything not quite right. The bug was too bad to leave it for any length of time so I've posted an update without the usual testing. Not what I like to do buy hey, I gotta keep you guys happy.

Cheers
Andy

Mozilla problems with v5.22 (menu width all crazy)


Poster: donH
Dated: Thursday June 17 2004 - 21:38:14 BST

Andy,
Looks like you nailed it!!
Thanks for your quick response...I'm impressed and very pleased :D

Don