Recent Questions Tree Structure In Javascript Listview Input
Q: I'm having trouble getting some of my dhtml menus free opening in the frm2. If you look under products, then Hard drives, then Rugged Airborne .....this one and Rugged Ground will not open in frm2 but the Contact Us and Get Quote are working fine. Can you help me get these things to open in a frm2.
A: You should write your menu items correctly.
Now you have
["||Rugged Airborne","../RuggedAirborne.htm","Airborne,"frm2","0", ],
["||Rugged Ground","../RuggedGround.htm","Ground","frm2","0", ],
it is not correct.
You should write:
["||Rugged Airborne","../RuggedAirborne.htm","","","Airborne,"frm2","0", ],
["||Rugged Ground","../RuggedGround.htm","","","Ground","frm2","0", ],
Q: We are looking at JavaScript libraries for our website, and we liked what we saw with your product deluxe-tabs. However, we have a need for both horizontal and vertical tabs, as well as nesting tabs. We would like the vertical (and nested tabs) to have the same capabilities and features as the horizontal tabs. We notive the vertical tab image example, but that was all we could find. Are there more extensive examples that show the same functionality as the horizontal tabs? Is the product, as is, capable of the same functionality for both vertical and horizontal tabs?
A: See, to create vertical tabs you should add '$' symbol before the itemtext in the first item of the next row.
You can use templates, add '$' symbol and adjust some parameters.
Q: I tried the following for subitem and it worked but not working with the "Title item" (Group or header item), is there a way to process onclick for the title item? Thanks again.
You're able to use Javascript for each item, for example:
var tmenuitems = [
["item text", "javascript:your_code_here"]
];
A: Unfortunately, title items doesn't allow to use Javascript in the sameway.
But you can do the following:
var tmenuitems = [
["<div onclick='your_code_here'>title text</div>"]
];
Q: I have just downloaded your trial version and am trying to use java menu maker using the windows xpstyle1 template. I can only seem to get the top button showing as grey but can change colors of submenus OK. Am I missing something or is this a restriction of the trial system i.e. how do I get the top button showing the same as submenu buttons
A: Trial version of java menu maker has full functionality of the licensed version.
To change submenu colors you should change the following parameters:
var menuBackColor="#F2F3F2";
var itemBackColor=["#F2F3F2","#535353"];
and Individual Submenu Style:
var menuStyles = [
["menuBackColor=#F2F3F2","menuBorderWidth=0","itemSpacing=0","itemPadding=4px","smOrientation=undefined"],
];
For the top items you should change Individual Item style:
var itemStyles = [
["itemHeight=21px","itemBackColor=#F2F3F2,#535353"],
];