V5, form elements and NS 4x

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
acshopper
Beginner
Beginner
Posts: 5
Joined: Fri Sep 12, 2003 12:01 am

V5, form elements and NS 4x

Post by acshopper »

Hi,

The version 5 menu cascades over form drop-downs just fine in IE 5/6 and NS 6/7, but goes behind these elements in NS 4.79. I even browsed this page with NS 4.79: http://milonic.com/register.php
and got the same result (mouse over "DHTML Menu > Samples" to see what I mean).

I saw in the v5 forum that the "hidediv" function is no longer necessary, and verified that with my test page. However it still doesn't work with Netscape 4x browsers. I recognize that that only accounts for 5% of our traffic, but would still like it to work, if possible.

Thanks
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Umm, got a work around for ya. Put your dropdowns in a div and then on the mouseover for the menu, call a function that changes the display property of the div to none so it disappears, and then reappears when you mouse out.
This is a pretty common thing to do...if you have a yahoo account, open up your inbox and then open up one of the drop down menus they have at the top and you will see all the listboxes on the page disappear while the menu is open. You could also probably lift the code of that site too to see how its done.

Seems like alot of work for 5% of your users. Version 3 had the built in ability to hide divs, you could do alittle browser check on your site and display a v3 menu if they have netscape4, and only v5 otherwise.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

For the record - We are working on a fix for the older browsers, should have something soon, it is on the ToDo list anyhow.

Cheers
Andy.
acshopper
Beginner
Beginner
Posts: 5
Joined: Fri Sep 12, 2003 12:01 am

continuing problem with menu behind form elements

Post by acshopper »

Hi,

I thought I had this problem taken care of a couple of weeks ago, but today I noticed that it is back. The menu drops down behind my form elements (dropdown boxes)

I am using Version 5.0 Release Candidate 11.0 of milonic_src.js, and the form elements are inside a <div> tag. What else do I need to do?

Thanks
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

RC14 is current, so I would suggest catching up. Not sure if this problem has been fixed yet, but you're a lot farther behind than just 3 releases (numerous sub-releases have been in each of the RCs).
John
acshopper
Beginner
Beginner
Posts: 5
Joined: Fri Sep 12, 2003 12:01 am

Update problem

Post by acshopper »

Hi,

I took your advice and updated my js file to RC 15. I replaced the 3 files (milonic_src.js, mmenuns4.js, mmenudom.js) with the new ones, and now I can't see my menus at all. Do I need to make a change on the menu_data.js file as well? Note that this was a straighforward file swap, so the pathing is unchanged.

I can't tell if the new version solves the problem until I can look at the menus.

Thanks,
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I believe there was a change in the way the menus are called from pages since RC11. The scriptpath variable has been eliminated. Look at the documentation included with the download to see how to how your pages should now include the menu files.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
acshopper
Beginner
Beginner
Posts: 5
Joined: Fri Sep 12, 2003 12:01 am

Post by acshopper »

Hi,

I have altered the code on my page so that it exacly duplicates the instructions in the "install.txt" file that came with the download:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>

I have moved the three .js files into the same directory as my test page.

My menu_data file remains in its directory, but the pathing to it is correct.

I can't see the menu at all. This wasn't even the problem I first came here to solve. I need a real solution to the problem of version 5 menus disappearing behind form element in IE6 - I thought this had been handled in version 5. It worked a couple of weeks ago with release candidate 11, but doesn't anymore. Why would this be? It works in NS7.

Beyond frustrated.
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 see you referencing menu_data in that snippet. Do you have a URL? If not, paste your menu_data code up here.
Last edited by Hergio on Mon Oct 06, 2003 8:35 pm, edited 1 time in total.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
acshopper
Beginner
Beginner
Posts: 5
Joined: Fri Sep 12, 2003 12:01 am

Post by acshopper »

Hi,

The full snippet with path to menu_data is:

<SCRIPT LANGUAGE="JavaScript" SRC="milonic_src.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="/storyboards/milonic_menu/script/My_aso_data_lite.js" TYPE="text/javascript"></SCRIPT>

(I renamed menu_date.js to My_aso_data_lite.js" because we are working with several versions.)
Post Reply