Recent Questions Membuat Menu Tree Dengan AjaxQ: I am having some difficulty dynamically adding items to a dhtml sliding menus.
A: See dtreet_ext_insertItem () function has the following parameters:
function dtreet_ext_insertItem (menuInd, parentItemID, itemInd, itemParams)
Creates a new item and inserts it into a specified position.
menuInd - index of a menu on a page, >= 0.
parentItemID - ID property of an item.<, >= 0.
itemInd - index of a new item within the menu, >= 0.
itemParams - item parameters.
Notice that parentItemID is the Id property of the parent item
(notindex). If you want to add top items you should set parentItemID=0.
itemInd - you should use this parameter if you want to add item in the
specific place, for example set itemInd=5 if you want to add item
before the existing item with itemInd=5.
If you set itemInd=null the new item will be added at the end of this submenu and its index will be added automatically.
Q: The idea is that when you click the button of the menu,
the box that holds the menu links opens like normal, but Instead of having the written links inside the drop down box,
I want to have an item like an image or a search box or some other type of independently running script inside the dhtml xml menu.
["|Home <a href='http://domain.com'><img src='default.files/xpicon1_s.gif' width=12 height=12></a>","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "", "", "", ],
["|Product Info <a href='http://domain.com'><img src='default.files/xpicon1_s.gif' width=12 height=12></a>","", "default.files/icon2_s.gif", "default.files/icon2_so.gif", "", "Product Info Tip", "", "", "", ],
Q: Hi There. I wanted to use your product, but couldn’t figure out how multiple users could get varying menus using the file driven approach.
I currently use a java menu that I build on the fly without any files.
The only thing I could come up with was having each user refer to his/her own data.js file, that I can build on demand.
Does that make sense to you?
Theoretically it is possible to have varying menus for multiple users.You should create your own server-side script (for example, php) thatwill change the menu for your users. The menu doesn't support such afeature.
Q: All links in navigation bar examples open in a new window even when they're configured to open in the same page (or another frame).
A: Check the following parameters:
["menu item","link.htm", "", "","Tip", "_self", "", "", "", "", "", ],