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

open submenu on click not working [resolved]


Poster: nwilcox
Dated: Tuesday July 28 2009 - 16:44:35 BST

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

Re: open submenu on click not working


Poster: nwilcox
Dated: Tuesday July 28 2009 - 18:56:36 BST

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! :)

Re: open submenu on click not working


Poster: Ruth
Dated: Tuesday July 28 2009 - 22:40:56 BST

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

Re: open submenu on click not working


Poster: nwilcox
Dated: Wednesday July 29 2009 - 4:32:53 BST

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?

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


Poster: nwilcox
Dated: Wednesday July 29 2009 - 19:58:50 BST

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

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

problem solved! :D

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


Poster: Ruth
Dated: Wednesday July 29 2009 - 21:17:41 BST

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

Ruth

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


Poster: nwilcox
Dated: Wednesday July 29 2009 - 21:21:29 BST

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 ;)