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

Serious problem using milonic with treeview


Poster: redmapper2
Dated: Monday April 11 2005 - 8:46:14 BST

Hi everyone,

I have been using treeview (http://www.treeview.net/) for a while now, and like it.

Recently I decided to add a Milonic menu to my site, however this created a serious problem.

It is enough for me to mouse over the Milonic main menu for me to break the treeview (Ie the tree no longer opens and closes).

Both of these are great products, but why cant they just get along?

This happens in both IE, and Firefox.

I have created a small, simple test case that demonstrates this bug, if anyone is interested I can email it to you.

Any help would be very greatly appreciated.

Redmapper.


Poster: Ruth
Dated: Monday April 11 2005 - 13:46:59 BST

Hi Redmapper,
Could you put the link for the test page here so that the forum helpers can take a look and see if we can find the problem?

Ruth

Ok, the test case is online


Poster: redmapper2
Dated: Monday April 11 2005 - 17:49:56 BST

I place the test onto a homepage on GeoCities:

http://www.geocities.com/reuvenlevitt//test.html

Serving off Geocities it doesnt seem to work quite the same as local or on Apache, but its still broken.

Therefore I also put this zip file up there, it is not really a .js file, but rather a .zip file. But geocities goes not allow the upload of archives, so I renamed the file .js. If you want to check it out, get the file, and change the extension to .zip. Then expand it into a directory, and open test.html.

http://www.geocities.com/reuvenlevitt//milonicbug.js

Thanks for any help.

Redmapper


Poster: Ruth
Dated: Monday April 11 2005 - 18:38:03 BST

You must move the milonic files to after the treemenu files

Code: Select all

<!-- SECTION 3: These four scripts define the tree, do not remove-->
<script src="ua.js"></script>
<script src="ftiens4.js"></script>
<script src="demoFramelessNodes.js"></script>
<script type="text/javascript" src="milonic_src.js"></script>
<div class=milonic><a href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>
<script type="text/javascript">
    if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
      else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>

<script type="text/javascript" src="menu_data.js"></script>
</head>


Or into Section 5, the first thing on the page, nothing before those files.

I tested in IE5.5, Netscape 7, Firefox 1.0.2 and all work. Opera 7.54 works, except for some reason if you click a link in Milonic that goes to a page without any menu, and then click the back button in Opera the treemenu won't work. It would seem you need some kind of script that when you click the back button it goes to the page again instead of taking it from the cache.

I have to assume since I don't do programming nor javascript that there is a conflict because Milonic also has a treemenu and it utilizes code in the Milonic base files.

If you'd care to try the Milonic Treemenu, you could then use just one data file for your menus. You would code the data file so that both the menu you have now showing home would be visible and have a position listed for it i.e. top=10; left=50; or top=10; and screenposition="center"; right/left whatever you want as to where it is place and the treemenu would be visible. Milonic allows for more than one 'main' menu to be placed and visible.

Milonic DHTML Tree Menu You would also have to download the newest treemenu.js file from the link on the bottom of that page, plus the Tree Menu itself from the download link. That menu has different images, like a recycle bin etc, but those are not necessary.

Hope that helps.

Ruth