Recent Questions Silverlight Treeview Groupby
Q: We are now working with JavaScript Tree Menu and can't get our favorite template to link. It is the one you call animated-icons
The example you gave has no links, but when we try to add links to it (in the 2nd parameter of any menu item), NOTHING happens.
It's not a broken link, it just wont do ANYTHING.
A: See your menu parameters. Now you have:
var itemTarget="";
var statusString="string";
You should set this parameters:
var itemTarget="_self";
var statusString="link";
Q: 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.
Q: I'm trying out your cool dropdown menu code.
I'm trying to rebuild my menu like this one
http://deluxe-menu.com/data-templates/vista-style-3-03-template-sample.html
I have a problem. In my case, I have some really long labels and some short ones. In some cases my text is larger than the button (see attachment). In your example all the buttons have the same width. Is it possible to have a Vista styled menu with different width for the buttons?
A: See images in Vista Templates have the fixed width and height (92 x 21).
If you want to change items' width/height you should change images.
btn_cyan.gif
btn_cyan2.gif
You can do it in any graph editor, for example in Adobe PhotoShop.
You should also change items width in your Individual Item Style.
var itemStyles = [
["itemWidth=92px","itemBorderWidth=0","fontStyle=normal 11pxTahoma","fontColor=#FFFFFF,#FFFFFF","itemBackImage=btn_cyan.gif,btn_cyan2.gif"],
];
You can do it in Deluxe Tuner.
Q: Is it possible set a menu item to pressed when a page is loaded when you have multiple drop down menus on the page?
I have 2 menus side by side and I was able to set the pressed item with the JavaScript API as described in your FAQs but when I try to show an item as pressed in a second menu on the same page, the corresponding item in the first menu shows as pressed. Is there a different function that I can use for this or a way to reset the menu ID in the second menu to start from where the first menu left off so I can use the same function?
A: See the first parameter in
dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
function is index of the menu.
So, if you use several menus on the one page you should use differentmenuInd parameter.
For example you have:
<script type="text/javascript" src="menu/data1.js"></script> //menuInd=0
...
<script type="text/javascript" src="menu/data2.js"></script> //menuInd=1
...
<script type="text/javascript" src="menu/data3.js"></script> //menuInd=2
...
<script type="text/javascript" src="menu/data4.js"></script> //menuInd=3
So, for the second menu you should write:
dm_ext_setPressedItem (1, 2, 5)