Recent Questions Treeeditor Change Field Type
Q: Is there a javascript API for the expandable menu tree to fire an user click event so the browser will load proper page accordingly? I looked around the current APIs from your site and could not find one.
Please advise.
A: You can use dtreet_ext_userClick (itemID) function.
See more info:
http://deluxe-tree.com/functions-info.html
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var tmenuItems = [
["text", "javascript:your_code_here"]
];
or
var tmenuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];
Q: I have one final question:-
If you go to http://domain.com/mainboard.asp
And click the tools icon.
My application has 3 types of settings.
Click the line icon (which highlights) then you can use the line tool Then click the thickness icon (which only changes the thickness of the line) And then click the colour icon (which only changes the colour of the line)
Unfortunately, when another icon is selected it resets the original icon.
Is there a way to show one of the top 8 function icons highlighted as well as the selected thickness icon and palette icon all in a selected state together?
A: function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
Changes parameters and an appearance of the item.
menuInd - index of a dropdown javascript menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0. See more info about indexes here.
iParams = [array] - the array of item parameters. This parameter has the same structure as an item in menuItems array. You can assign parameters of another existent item of themenu or create new ones.
Structure of iParams:
[item_text, link, icon_normal, icon_over, tip, target, individual_style_index, jsFilename]
You should change icon_normal, icon_over parameters for the items.
http://deluxe-menu.com/functions-info.htmlQ: I have bought this from you. What is the name of the divlayer(s)? Here's a bit of the modified menu code:
["|<iframe height=400 width=435 frameborder=0 scrolling=no src=my_bookmarks.asp></iframe>","","","","0",,,],
I open an Iframe inside the javascript menu design item, and it works fine, but is there a way to close it? I know the commands for hide layers, but I can't find any div layer names to use.
A: I'm not sure I understand you.
Do you want to hide your items?
You can try to use API functions
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
Find more info here:
http://deluxe-menu.com/functions-info.html
Q: When I save the file in our folder all the icons stop showing. I placed a image folder in our IE folder and still no icons are showing.
A: You should check all your paths.
Please, check that you have correct paths in the tmenuItems. Forexample:
["|Samples", "", "icon3_s.gif", "icon3_so.gif", "", "Samples Tip"],
["||Sample 1", "testlink.htm", "iconarrs.gif"],
["||Sample 2", "testlink.htm", "iconarrs.gif"],
["||Sample 3", "testlink.htm", "iconarrs.gif"],
["||Sample 4", "testlink.htm", "iconarrs.gif"],
You can also try to use the following parameter:
var tpathPrefix_img = "img/";