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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:42

Long Menu Problems


Poster: markjonathan21 __at__ cogeco.ca
Dated: Tuesday April 16 2002 - 3:48:05 BST

Ok, I have this Menu on my site.

http://home.cogeco.ca/~perringoldeneyes/index.html

I have a section for Cars. I am planning to build a page for every car on the market, but I am having some problems with the menu now. take for instance the Sub Menu Cheverolet in the sub menu of GM in the sub menu of Cars which is in the Perrin's Stuff menu on my site. If the Browser window is not maximised then the menu cuts off a several links within the menu. Can anyone tell me how I am to make it so that none of the menu's items get cut off? I mean the items are there aslong as the entire menu can be viewed in the browser window, but if the window isn't big enough it shows only the links that fit in the window. Please Help... I'm desperate.

P.S. none of the Car links actually work right now.

Re: Long Menu Problems


Poster: amitsm __at__ niit.com
Dated: Tuesday April 16 2002 - 14:10:56 BST

You must be using the offset and not given the top and left positions for the submenu. If we explicitly specify the top and left positions then the menu appears at the correct position.

Re: Long Menu Problems


Poster: John
Dated: Tuesday April 16 2002 - 14:44:02 BST

Amit -

Depending on the size of the window and the length of the menu your solution may or may not work. Better would be to get Andy to implement scrolling menus!


John

Re: Long Menu Problems


Poster: markjonathan21 __at__ cogeco.ca
Dated: Tuesday April 16 2002 - 14:58:36 BST

Amit ... How do you do that? I see the offset commands your talking about but how do I specifcally set the top and left positions? As you can tell I am not an expert in this kind of things. I only learned this menu by looking for the links and changing them to what I want. Other then that I have no clue as to how to change or modify the code. Please help.

Re: Long Menu Problems


Poster: amitsm __at__ niit.com
Dated: Wednesday April 17 2002 - 5:45:36 BST

Hi Mark,
If you check the code you will be specifying an array where all details of a menu are given...it will be something like :

menu=[// This is the array that contains your menu properties and details
"menu0", // Menu items Name
80, // Top :<b>Y Offset</b>
10, // left :<b>X Offset</b>
200, // Width

.....and so on...
]

If you have fixed items in the menu you can easily check the correct Top and Left coordinates.

Re: Long Menu Problems


Poster: tom.landers __at__ sympatico.ca
Dated: Thursday April 18 2002 - 14:40:45 BST

I think he is having the same problem I am, and that is a sub-menu that opens with entries that are off the end of the page.

I'm using a verical menu (aligned on left) and a menu-entry near the bottom opens a sub-menu which has most of it entries unaccessible because the sub-menu runs off the bottom of the screen.

I've tried using the X and Y offsets, but it appears that they are ignored for sub-menus.

Re: Long Menu Problems


Poster: markjonathan21 __at__ cogeco.ca
Dated: Thursday April 18 2002 - 19:23:59 BST

That is exactly the same problem I am having. Now only if we could figure out how to solve that problem. I wish they could implement something into the menu like how the Windows Start menu works. When a sub menu gets too long it becomes either scrollable or it starts a new column of menu items.

Anyways if anyone can help in this situation it would be awesome.

Mark

Re: Long Menu Problems


Poster: amitsm __at__ niit.com
Dated: Friday April 19 2002 - 5:41:22 BST

Guys, I faced the similar problem but it worked fine when I specified the Top and Left start positions for the sub-menu. I have tested it only on IE5 though. And if my menu entry opens a sub-menu at the bottom of the page then the window scrollbar gets adjusted according to the height of the sub-menu....

I also checked out your link Mark and it seems you have not given top and left positions for any menu except for the mainmenu.

Anyway, it still is a issue though as it can be tough at times to specify the sub-menu coords. I faced a situation where my menu entries came from a database and I had to calculate submenu coordinates at runtime. For this I needed height of a menu entry..but since that was not available I had to do some hit-n-try to get the menu height :)

As John said, it would be great to have a scrollable menu....

Re: Long Menu Problems


Poster: markjonathan21 __at__ cogeco.ca
Dated: Friday April 19 2002 - 17:05:19 BST

Its because I don't know how to lol.... I don't really know javascript or DHTNL ... I basically know just the basics. Any help in doing that would be great.

Mark

Re: Long Menu Problems


Poster: Andy
Dated: Friday April 19 2002 - 18:21:43 BST

Scrollable menus are on the way, should be implememted with version 3.4 but it will not be untill next week now :-((

Cheers
Andy

Re: Long Menu Problems


Poster: qarellan __at__ co.la.ca.us
Dated: Wednesday April 24 2002 - 20:56:21 BST

Is there a way to make the menus adjust according to the window size? For example, if the menu is vertically too long, the menu could shift upward to avoid falling below the bottom of the browser window. HierMenus has dynamic padding between the browser window and the menu system.

Re: Long Menu Problems


Poster: Andy
Dated: Wednesday April 24 2002 - 21:01:26 BST

It's coming soon - just give me a few days to perfect it.

Cheers
Andy

Re: Long Menu Problems


Poster: tom.landers __at__ sympatico.ca
Dated: Thursday April 25 2002 - 14:58:14 BST

My interim solution was to simply move the menu item with the longer submenu higher up in the menu, that way all its submenu items fit on the window. Means the menu isn't in alphabetical order, the way I want it, though.