Recent Questions
Q: How I can write the changed dhtml pull down menu into a database?
A: Unfortunately, we don't have such example.
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- Deluxe Tree -->
<noscript><a href="http://deluxe-tree.com">Javascript Tree Menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript" src="menudir/dtree.js"></script>
<!-- (c) 2006, http://deluxe-tree.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var tmenuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
This example is not for Deluxe Tree menu, but you can create your menu in the same way.
Q: Does horizontal drop down menu works with JSP? How can I do that?
A: Deluxe Menu is the Javascript product. It means that it works on aclient side only and it doesn't depend on the server which you'reusing and it doesn't work on a server side as JSP script.
So, you can create the menu using standard html page and them movemenu code within .jsp page.
Q: Is there a way to capture which menu item was clicked in the popup menu and store that information into a database?
A: See how you can find the ID of the clicked item:
var menuItems = [
["Home","javascript:alert(itVar.id)", "", "", "", "_self", "3"],
];
Q: There is a very nice facility in the Item "MQ Result". If I select one Subitem the other dhtml navigation menu (opened) Subitem is closed.
Is there a way to get this facility for Items too? For example, I open "Adresse" and then "Stammdaten Adresse" and then the opened "Adresse" is closed.
A: You should set the following parameter:
var tcloseExpandedXP=1;