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: Thursday February 8 2018 - 06:02:29

Milonic v5.0 Bug: HIDEDIV not running


Poster: xarli
Dated: Monday August 18 2003 - 15:20:52 BST

On v3.5.* you could specify the name of the DIV TO HIDE so FORM objects don't overlap the DHTML menu.

On v5.0, although there is a property related to this feature (HIDEDIV), it doesn't run (misimplemented).


Poster: John
Dated: Monday August 18 2003 - 15:25:23 BST

Request - you've posted this same item in 2 forums, here and Help & Support (which is where it should be). Once in the proper area is enough, as it's easy to confuse us old folks who are trying to answer the questions.

Thanks.


Poster: xarli
Dated: Tuesday August 19 2003 - 17:20:00 BST

First of all, THIS FEATURE IS ALREADY RUNNING! :oops:

Guidelines for those ho have the same (unexistent) problem:

V3.5.*
:idea: Place your form inside a div and name it (remember to set the same value for name and id attributes). Suppose we name it howdyform.
:idea: Specify that name in the correct place when you create the menu, for a menu without submenus:

Code: Select all

addmenu(menu=["myOKMenu",29,520,,0,,XPMainStyle,1,,,0,1,0,,3,0,0,'howdyform',,0,,
,"An Item","/url/to/somewhere onbordercolor=406080;offbordercolor=60A0C0;",,,0
]);


V5.0
:idea: Assure your menu and form fall into the same div or no div at all !!!


Poster: Andy
Dated: Tuesday August 19 2003 - 17:21:58 BST

Hi,

We are working on a separate function for hiding menus.

This will mean that code will only be used to hide the divs if a form is actually present. In version 3 this code was being executed all the time and was quite static. Version 5 should be much more flexible.

Should be ready very soon.

Cheers
Andy


Poster: tepidarium
Dated: Thursday October 16 2003 - 1:40:43 BST

Andy wrote:Hi,

We are working on a separate function for hiding menus.

This will mean that code will only be used to hide the divs if a form is actually present. In version 3 this code was being executed all the time and was quite static. Version 5 should be much more flexible.

Should be ready very soon.

Cheers
Andy



Hi - Really happy to hear about this... :) Might you also consider including something of a classic hide div function to hide a div over an embedded object -say a flash movie file. I think this is a sorely needed feature. Thanks for you work!


Poster: Andy
Dated: Thursday October 16 2003 - 9:49:06 BST

It will be a generic function regardless of content so will work with Flash, Java etc.

cheers
Andy


Poster: tepidarium
Dated: Thursday October 16 2003 - 19:19:07 BST

Andy wrote:It will be a generic function regardless of content so will work with Flash, Java etc.

cheers
Andy


Does this mean that the menu will automatically hide anything enclosed in a <form></form> tag? If so, it may be a problem...because the form tag creates extra space around elements & adding it around embedded objects in a design that depends on 0 spacing may be difficult or impossible... or am I not understanding what you have said?


Poster: Hergio
Dated: Thursday October 16 2003 - 21:32:22 BST

Form elements can be made to have zero padding and margins. Using CSS you can edit the styles in line or you can specify in a global CSS file included into all your pages that ALL forms have these properties.

Code: Select all

<form id="f1" style="padding:0px; margin:0px;">....</form>


Poster: tepidarium
Dated: Friday October 17 2003 - 18:30:31 BST

Hergio wrote:Form elements can be made to have zero padding and margins. Using CSS you can edit the styles in line or you can specify in a global CSS file included into all your pages that ALL forms have these properties.

Code: Select all

<form id="f1" style="padding:0px; margin:0px;">....</form>


Well, you're right in that this fix will work for most of the newer browsers. But Netscape 4.x still applies space/padding even if that style is declared. Since the menu will display over embedded objects & forms with no problems in newer browsers, the fix seems to be for older browsers like netscape 4.x - I think it would be great if the functionality could be extended to user defined divs...


Poster: Hergio
Dated: Friday October 17 2003 - 21:09:19 BST

I dont think it will be hard coded to work only when forms are present. Thats seems very non-scalable and not like Andy, unless its absolutely necessary. I think it will eventually be a div, where if you want any form elements (not the form itself, but inputs) to show behind the menu, you enclose them with a DIV and then the code will work on only those elements which are within the DIV specified.