Recent Questions Simple Tree Menu Php
Q: We are experimenting with your library but can't seem to make it work. I am getting "d_ddm is undefined" in dmenu_popup.js menu script.
Could you tell me what we are doing wrong?
A: You should change
onClick="return dm_popup(1, 500, event);
to
onClick="return dm_popup(0, 500, event);
If you have only one menu on the page your menuInd = 0;
Q: I want to make a Treemenu with AJAX.
If I look in the dhtml menu tool preview all is good.
But if I put it in a html, it does not function anymore.
I'm using Version 3.2.6.12 (you sent me a while ago)
A: There is a bug in the current version of Deluxe Tuner. It doesn't saveengine file for AJAX menu - dtree_ajax.js.
Please, copy it manually now. We'll correct this bug in the nextversion.
You should also add tWorkPath parameter in your html page.
<!-- Javascript/DHTML Tree -->
<noscript><a href="http://deluxe-tree.com">dhtml menu tool by Deluxe-Tree.com</a></noscript>
<script type="text/javascript"> var tWorkPath="menu.files/";</script>
<script type="text/javascript" src="menu.files/dtree.js"></script>
<!-- (c) 2006, http://deluxe-tree.com -->
Q: I am using javascript dropdown menu - JavaScript Tree Menu 2.0 and have some problem with the doctype declaration.
Is there any need to classify a certain doctype in order to get the menu working correctly?
If we use the XML declaration (like this: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
the padding and margin settings of the submenus get lost.
Are there any known solution to fix this?
A: Yes, it happens if you don't specify units in "px" for some dropdown menu parameters.
Please, try to write so:
var itemPadding="2px";
Q: I have been using JavaScript Tree Menu quite a bit, but am now running into a problem on a site I developed. When I add a submenu, it appears separated by about 100 pixels down. In this case I left it on the Menu Item “Why Maumelle” for you to look at.
Can you help me out?
A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "position" attribute of the object if the object doesn't have this property within inline style(style="position:relative"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
For example, you should add style="position:relative;"
to the
<DIV class=MainBody>
<DIV class=Banner></DIV>
<DIV class=Menu>
So, you'll have:
<DIV class=MainBody style="position:relative;">
<DIV class=Banner></DIV>
<DIV class=Menu style="position:relative;">
Now we have only such solution for this problem.
We'll try to fix this problem in the future versions.