Recent Questions
Q: I want to use
function dtreet_ext_userRightClick(itemID) {
alert(itemID[0]); ???
return false;
}
But how do I refer to tmenuItems array using itemID in the javascript?
For example, if I want to pop a link text, should I use alert(itemID[0]))?
It doesn't work.
Please let me know how I refer to the menu.
A: You should use the following function to get item's info:
dtreet_ext_getItemParams (0, itemID);
For example:
<script type="text/javascript">
function dtreet_ext_userRightClick(itemID)
{ var link = [];
link = dtreet_ext_getItemParams (0, itemID);
//Returns item parameters in the array:
// [item_id, index_within_submenu, parentID, level, has_child, child_count, expanded, text, link, target, tip, align, icons, hidden, disabled, visible]
alert(link[7]);
return false;
}
</script>
Q: I am a web developer and evaluating your product using the Trial Version. I created navigation bar for our website.
It is displaying fine (centered) when using Internet Explorer 7.0. When I access the same website using FireFox Browser, the java drop down menu code aligns on the left.
A: It is not correct to write
align=middle
you should write
align=center
You should set the following menu parameters:
var absolutePos=0;
var posX="0px";
var posY="0px";
Q: Is there a javascript function that I can call that will return the ID or the Text value of the currently checked tab?
A: Unfortunately there is no such a function now.
There are such variables.
dtabs_tabs[menuN].b1 - dtabs_tabs[menuN].selectedItem
dtabs_tabs[menuN].JT0 - dtabs_tabs[menuN].selectedSmItem
But they contain the index of the selected menu item, not the ID.
Q: I use v3.0.
I cannot manage to search within the menu.
I have done this:
var dmSearch=2
"search:" in the link of a new item
A: You forgot to copy dmenu_search.js file on your server.
See the attached example. Search works fine.
You can also specify styles for the search box:
["|Doorzoek menu ","search:value='search..' style='border:1px;width:60px;height:14;font-size:10px;'", "", "", "", "", "", "", ],