open submenu on click not working [resolved]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

open submenu on click not working [resolved]

Post by nwilcox »

trying to use the example provided here for submenu on click: viewtopic.php?f=10&t=10187&start=0&hilit=click+to+open

http://dev.eatright.org/public/

Click on the gray login button at the top of the design.

After implementing the suggested code, my submenu tries to display but then it stops and then the page flashes and reloads and the sub menu is gone.

The brief time it pops, it is popping behind my other Milonic menus below it (the green horizontal bar)

What a mess! Anyone have any ideas? :?
Last edited by nwilcox on Thu Jul 30, 2009 6:32 pm, edited 4 times in total.
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: open submenu on click not working

Post by nwilcox »

well there is egg partially on my face. I got the page to stop flashing and everything loads on click BUT the menu still pops behind the other Milonic menus on the page.

I also getting JS errors as well

Error: H is null
Source File: http://dev.eatright.org/javascript/milonic/mmenudom.js
Line: 16

The weird thing is if I click on the menu button a second time, the menu bumps to the front and everything is fine.

Any assistance would be greatly appreciated! :)
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: open submenu on click not working

Post by Ruth »

Hi,

Well, try upgrading first, then we can look at it. You are down 3 levels, and there is a new pre-release also.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: open submenu on click not working

Post by nwilcox »

Hi Ruth

Wise as always! :oops: I just installed the newest version

and good news there are no errors or weird jumpy shenanigans

bad news is the popping behind my lower Miloinc menu (the horiziontal green bar) still occurs

I've never built multiple milonic menus that had the possiblity of overlapping before. There should be no conflicts right?
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: open submenu on click not working [resolved myself :)]

Post by nwilcox »

I was able to fix the menu popping below by setting a higher zIndex manually in the menu generation

Code: Select all

with(milonic=new menuname("megaMenuAdvancedSearch")){
style=menuStyleMegaMenuAdvancedSearch;
itemwidth="385px";
itemheight="222px";
keepalive=1;
zindex=91;

problem solved! :D
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: open submenu on click not working [resolved myself :)]

Post by Ruth »

DUH :oops: I knew that, I have no idea why I didn't think of it

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: open submenu on click not working [resolved myself :)]

Post by nwilcox »

he he no problem Ruth - you've been more a real blessing here on the forum!

The only reason I found this out was because I was dealing with Thickbox issue and literally found the solution while fixing that issue.

Thanks again for always replying and making a valiant effort in getting issues resolved.

I give you a gold star for the day ;)
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
Post Reply