Recent Questions Treemap Templates You Can Type OnQ:
How can you set an item in a dhtml dropdown to just have a text and not a link A: Don't add link in the item's link field:
["Home","", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "_blank", "", "", "", ],];Q:
The menu has a problem with newlines. The menu builds correctly (layout ok) but when pressed on the button nothing happens
var menuitems = [
As you can see we have a newline (\n) between the words "screen" and "will". But when we click on the button nothing happens. If we remove the newline and we click on the button then we first get the alert box. After pressing the OK button the function printResult is called.
Is there any way for us to still use the newline character in the menuItems variable?
This can be easily reproducible. That's why I haven't made an example. A: Try to write in the following way \\n:
1) Go to 'Tools -> Internet Options -> Security'
2) Select Local Intranet and then press 'Custom level...' button.
3) Run ActiveX Controls and plug-ins = Enable
Automated Prompting for ActiveX Controls = Disable
Lets say, Item 1 expanded, Item 2 not expanded, anyway, it should look like I select it in the ITEMS program window.
Now it is exanded completely or not, like I use the switch in the common parameters. A: You can expand some items by default.
Add '+' sign before items text in that case:
["|Home","testlink.htm", "deluxe-tree.files/icon1_s.gif", "deluxe-tree.files/icon1_so.gif", "", "Home Page Tip", "", "", "", "data-new.js", ],
Use var texpanded=1; parameter to expand all menu items by default.
Use function dtreet_ext_expandItem (itemID, expand) API function to expand the specificmenu items dynamically: