Recent Questions Javascript Dtree Ajax Problem
Q: I’m trying to setup a simple DHTML MENU (TREE MENU). It works just fine. I just have an issue that I can’t solve.
The parameter “ var tmenuHeight = "0"; Your documentation says the following
-----------
Height of the menu in (px, % or other units).
If the value 0 - the menu sets its height automatically.
If the value is small - scrollbars appear.
In IE it looks fine but I cannot see the menu in Firefox. When I set the parameter to for example 100 then it shows up both in IE and Firefox. But I cannot set a value in pixels. I don’t know how big the menu is because it’s dynamically built. According to your doc I can specify the value in percentage but this doesn’t work. When I set the value to “100%” it doesn’t show up in Firefox again.
How can I solve this issue?
A: Try to set this parameter in the following way:
var tmenuHeight = "auto";
Q: I have just 2 more questions.
1. Can the 3rd level be configured to be a javascript vertical menu?
2. Can your menu be configured per the following spec? Once you click on a 3rd level option that level would disappear & the 1st & 2nd level would be breadcrumbed (stay visible to show you where you are).
A: 1) Yes you can do it. Use smOrientation parameter in IndividualSubmenu Styles:
var menuStyles = [
["smOrientation=0"], //id=0
];
Assign it to the first item in third submenu:
["Home","testlink.html", "", "", "", "", "", "", "", "", "", ],
["Product Info","", "default.files/icon1.gif", "default.files/icon1o.gif", "", "", "", "", "", "", "", ],
["|Features","testlink.html", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "", "", "", "", "", ],
["|Installation","", "default.files/icon2.gif", "default.files/icon2o.gif", "", "", "", "", "", "", "", ],
["||Description of Files","testlink.html", "default.files/icon6.gif", "default.files/icon6o.gif", "", "", "", "0", "", "", "", ],
2) No, it is not possible now. Your 3rd level submenu will be visible too.Q: Ich habe ein Problem mit submenus. Es erscheint, dass es eine Grenze auf der Breite eines submenu Punkt undals ein concequence gibt, wenn Sie den Punkt herumdrehen, zwingt es den Kasten, nach rechts zu rollen. Gibt eseine Kappe auf der Breite von submenu Punkten? Ich kann nicht scheinen, diese Ausgabe aufzuheben.
Es geschieht, wenn ich sowohl CSS als auch die Standardaufstellung auf dem Menü benutze.
A: Sie sollen die Folgenden Parameter setzen:
var smWidth="";
var smSmartScroll=1;
>Kehren Sie zu Neuen Fragen zurückQ: I was enthused to see you had cross-frame support for your menus. But, as I got into it, I discovered that your javascript transparent menu doesn't support frames within frames.
A: Actually JavaScript Tree Menu works correctly with nested frames in most cases.Try to install JavaScript Tree Menu in cross-frame mode. If you'll have someproblems you can send us a copy of your html page (including .js files) ora direct link to your website, so we can check it.