Recent Questions Jstree Json Example
Q: I'm looking at purchasing your product but have one small problem. I'm using the expandable menu and would like to have the menu save the state when reloading or refreshing the browser.
Can this be done with the expandable menu? If so, what is the syntax?
A: I advise you to use Javascript/DHTML Tree, http://deluxe-tree.com/. This is a newer version of Dhtml TreeMenu.
You should use the following parameter:
var tsaveState = 1;
Example, you can find here:
http://deluxe-tree.com/data-samples/tree-menuxp-save-state.html
Q: I created tabs. And i placed the some control in each tab. I taken the submit button outside the tab . I written java script validation for taking input.Now in this case my focus should go the particular tab and the control.
How to control and refer particular tab in flash tab menu when submit button is exist outside the tab
A: You can use the following function to open appropriate tab:
dtabs_itemClick(menuN, itemN);
where
menuN - index of a menu on a page, >= 0.
itemN - index of a tab you want to show, <=0.
For example:
<DIV onClick="dtabs_itemClick(0,2)" style="width: 200px; border: 2px solid #000;">Click to open the third tab</DIV>
Q: I am Registered user.
My question is:
Can you have borders around the sub-menus only. If you can how is this done, if it is done in the individual styles can you walk me through that. I tried it there but for some reason it wasn’t working. I'm thinking I wasn’t selecting the correct item to edit.
A: You should create Individual style and assign it to the first item in each submenu.
var menuStyles = [
["menuBorderWidth=1","menuBorderStyle=solid","menuBorderColor=#813A07"],
];
var menuItems = [
["Home","testlink.html", "", "", "", "", "", "", "", ],
["Product Info","", "border-example.files/icon1.gif", "border-example.files/icon1o.gif", "", "", "", "", "", ],
["|Features","testlink.html", "border-example.files/icon2.gif", "border-example.files/icon2o.gif", "", "", "", "0", "", ],
Q: Is there a way to hide a javascript top menu options using either CSS or the java api based on the site user?
(I use ColdFusion for scripting)
A: JavaScript Tree Menu supports Javascript API.
You can find more info here:
http://deluxe-menu.com/dynamic-functions-sample.html
You can try to use API functions in that case:
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
To disable items you should set the target parameter to "_".
You can try to use the following function
function disable() {
dm_ext_changeItem(0, 1, 1, ["", "", "", "", "", "_"]);
}
to disable your items.