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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

menuwidth=171;
itemwidth=171;
menualign="left"
If that doesn't work, try putting it in one of the items of the particular submenu.

Code: Select all

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

Post by Maz »

I have reported the problem in Firefox.

maz
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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

Post by Maz »

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

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

maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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

Thanks for your help.

Don
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

Cheers
Andy
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

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

Post by John »

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.
John
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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
UEBen
Super Advanced
Super Advanced
Posts: 34
Joined: Thu Mar 27, 2003 8:26 pm
Location: Evansville, IN
Contact:

Post by UEBen »

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:

viewtopic.php?t=4398

Just FYI. ;)
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

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

Post by donH »

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

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

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

Post by kevin3442 »

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

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

//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
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

Post by donH »

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

Post by kevin3442 »

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
donH
Advanced
Advanced
Posts: 22
Joined: Sat Apr 17, 2004 1:34 am
Location: US
Contact:

Post by donH »

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

Post by Maz »

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