Milonic v5.0 Bug: HIDEDIV not running

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
xarli
Advanced
Advanced
Posts: 15
Joined: Mon Aug 11, 2003 3:58 pm
Location: Spain - Salou

Milonic v5.0 Bug: HIDEDIV not running

Post by xarli »

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).
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
xarli
Advanced
Advanced
Posts: 15
Joined: Mon Aug 11, 2003 3:58 pm
Location: Spain - Salou

Post by xarli »

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 !!!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

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!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

cheers
Andy
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

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?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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>
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

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...
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply