Serious problem using milonic with treeview

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
redmapper2
Beginner
Beginner
Posts: 2
Joined: Mon Apr 11, 2005 8:39 am

Serious problem using milonic with treeview

Post by redmapper2 »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
redmapper2
Beginner
Beginner
Posts: 2
Joined: Mon Apr 11, 2005 8:39 am

Ok, the test case is online

Post by redmapper2 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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="https://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
Post Reply