Recent Questions C Menu Treeview Hover CssQ: I'm interested in using DHTMLMenu in web applications I develop and have some questions about licensing.
My company develops web applications that act as front ends for clients' legacy mainframe programs. DHTML Menu would be of great benefit in adding navigation functionality to these applications. Each application is custom-developed for each client, so we don't have a pre-packaged product in which the menu would be used. Would the Developer License meet our needs for this sort of development?
Also, a small minority of our clients develop and distribute applications themselves based on the applications that we develop for them. Does the Developer License support transferable redistribution? If not, how much would a license that permitted this cost?
Thank you for your time and I look forward to hearing from you.
A: Yes, Developer License will suit you.
You can use it within your applications and distribute them.
A: You should set the following parameter:
Check also that you don't have '+' sign before item's text in the top items, for example:
["+Home","", "", "", "", "", "", "0", "", ],
["+Item1","", "", "", "", "", "", "0", "", ],
Q: Can data be loaded dynamically?
For example, can your dhtml menu source code load the child of a node once the node is clicked on?
A: You can use AJAX like technology.
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
<!-- (c) 2006, http://deluxe-menu.com -->
// and describe parameters of a menu
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
The example of the menu working with PHP/MYSQL you can find here:
Q: The only remaining problem I see is that the dhtml popup menu appears in slightly
different positions depending upon where your mouse touches the icon.
Is there a way to make the menu position absolute in respect to the icon?
I have tried playing with the menu item parameters that seemed related with no success.
A: See dm_popup() function parameters:
return dm_popup(menuInd, pause, event, x, y)
menuInd - index of the menu on a page, >= 0.
pause - determines the time when the menu will be hidden.
event - constant. Do not change.
x, y - optional. Set these parameters if you want the menu to appear in the specified place.
In other case the menu will be shown in the mouse position.