Submenues on top of each other??

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Davidk
Super Advanced
Super Advanced
Posts: 48
Joined: Tue Sep 23, 2003 11:10 am

Submenues on top of each other??

Post by Davidk »

Hi,

Can anyone tell me why two of my submenues does like this?

Image

As you can see, two submenuitems ("books" and "journals") are highlighted at the same time, and the smaller "journal" submenu opens up on top of the "books" submenu. It seems that the "books" submenu doesn't go away. Puzzling.

I updated to the latest version of the menu yesterday, but it was apparently not that, because it still does it.

Any ideas?

David
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 can't see the url, bit too small for me. 8O

maz
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

looks like

http://www.rwi.lu.se/index.shtml

to me. But it took some magnifying and filtering to get it!
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

I deleted and re-wrote your "Books" and "Journals" bits of the menu and that seemed to cure it.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
jnewton
Advanced
Advanced
Posts: 15
Joined: Wed Feb 04, 2004 9:07 pm
Location: Norfolk, VA

Post by jnewton »

I'm having a similar problem. It seem that if the menu tab on the main menu bar is too close to the window edge, when you select a submenu for the main menu it wraps back to the right side. That in and of itself is not bad. Where the problem lays is with it being seperated from the meun calling it and in some cases overlapping with another submenu from the same group, like the one displayed.

I've played around with the "itemwidth" as well as the "right" properties and they don't ssem to have much effect on the over all problem. Noting elses seems to make much differenace.

I wish I could provide you a link, but the system is on our intranet and is pretty well firewalled. I can proved the code from the page as well as the menu_data.js.

Thanks,

John
Davidk
Super Advanced
Super Advanced
Posts: 48
Joined: Tue Sep 23, 2003 11:10 am

URL

Post by Davidk »

Oops, sorry that I forgot the url, just as you figured out it is:

http://www.rwi.lu.se/index.shtml

I will try to rewrite the code again, but it would be interesting to know what the actual problem is.

All the best,

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

Post by Ruth »

I am getting a javascript error message when I mouseover books or journals, it says invalid argument, but I'm only getting it in ie5.5, not in netscape, opera, or firebird [fox]. I have no idea what it is.

Ruth
jnewton
Advanced
Advanced
Posts: 15
Joined: Wed Feb 04, 2004 9:07 pm
Location: Norfolk, VA

Post by jnewton »

I'm running ie6 under XP and I didn't get any errors. I did notice that you get the exact same problem that I get wioth the menus floating way off to the left side of the screen and being detached from the menu that called them.
User avatar
stephen702
Super Advanced
Super Advanced
Posts: 77
Joined: Wed Jul 16, 2003 4:53 am
Location: Davis, CA
Contact:

Post by stephen702 »

For what it's worth, in I.E. 6.0.28 in XP, the problem occurs for me when the screen width is narrowed by my "Favorites" window on the left. The narrower screen width creates the menu-overlap problem for me when bringing up the "Publications" submenus.

When I close the "Favorites" window, however, the screen refreshes, and the "Publications" submenus display OK. However, the width of at least one of these submenu choices (International Journal of Minority and Group Rights) is so long that it almost goes off the screen to the right. Perhaps if this title were allowed to wrap?

Is there a war going on here between the menu display text and the menu/item width?
Davidk
Super Advanced
Super Advanced
Posts: 48
Joined: Tue Sep 23, 2003 11:10 am

Post by Davidk »

Thanks everybody for the input. I'll try to shorten the submenu titles and see what happens. I'm currently travelling, but I'll do it as soon as I return and I will let you know how it turns out. If anyone else would have any ideas they would of course be welcomed.

Take care,

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

Post by John »

Ruth, I'm getting the same JS error in IE6. Haven't been able to find it so far.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

OK, here's the JS error problem in Books and Journals.

Stephen actually hit on it. The overall width of the window is the stinker, and if the Books or Journals menu is going to butt up against the edge it pops the JS error. I have added a number ("lot") of <br> in those two menus to cut down on their width. They are still a bit wide, but not as much as before. Widen your window and you will not get the error. Narrow it down so you know it will bump the menu and you will get zapped.

See http://www.west.asu.edu/sa/testsite/.

I'm not sure this is proper operation, and I've asked Andy to take a look.

There is a slightly later version of the menu available than what you are running (it's still v5.15), but I don't think that's the problem.
Last edited by John on Tue May 04, 2004 5:38 pm, edited 1 time in total.
John
jnewton
Advanced
Advanced
Posts: 15
Joined: Wed Feb 04, 2004 9:07 pm
Location: Norfolk, VA

Post by jnewton »

John,

That is exactly the problem I'm having as well and unfortunatly, the window size varies with the monitor and user. I have already tried to narrow down the menus, but if it bumped up against the the right edge of the window, I'd get the sub menu folder over to the center of the screen. I hope that Andy has a solution. Version 5.15. still has the same problem. I tried it yesterday.

John
USCG, MLCA(ts-1)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Something else is going on here. I just narrowed the window on one of my sites and popped some wide menus with no JS errors, even though they went off the right side of the screen.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

OK, success.

Items that have numeric parameters do not need ""; e.g., subimagepadding="2"; should be subimagepadding=2;, etc. I removed all "" that were not needed, and now if the sub-menu is going to bump into the right wall it drops off the left side of the parent instead of the right side.

Should have seen that earlier.

My link above is still active.
John
Davidk
Super Advanced
Super Advanced
Posts: 48
Joined: Tue Sep 23, 2003 11:10 am

Post by Davidk »

Thanks John!

I'm still travelling, but I'll try this as soon as I'm back home, but from the test site, I already see the difference, excellent!

Thanks!

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

Post by John »

You're welcome.

Feel free to pull the _data file directly from there if you like, but please let me know when you're done with the test site.
John
jnewton
Advanced
Advanced
Posts: 15
Joined: Wed Feb 04, 2004 9:07 pm
Location: Norfolk, VA

Post by jnewton »

John,

I recall reading in the doc that you are not suppoe to use giote arounf numbers. I noticed in the files I received that there were several quoted numeric values in the style. I never changed tham as I thought tht this was the way it was suppose to be. Well, after reading your previous two post, I went in and removed all guotes from around numeric values and my problem(s) cleared up. Amazing how things work sometimes.

Thanks

John Newton
U.S. Coast Guard
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Unfortunately some of the files contain relics of the beta age and never got updated. As you found out, however, if it's numeric don't try to force it to be a string!

Glad it's working.
John
Davidk
Super Advanced
Super Advanced
Posts: 48
Joined: Tue Sep 23, 2003 11:10 am

Post by Davidk »

It worked! Thanks a lot John, excellent! You can take the test site down now!

David
Post Reply