Recent Questions Struts Collapse Tree Table
Q: I am getting stuck with trying to set a default tab in the div tab menu to be selected when a window opens...
What I've been trying to do is changing this line here :
var bselectedItem=0;
At 0 (default) it has the first tab selected. Any other number and notabs are selected.
Is there a setting somewhere else that I am missing?A: You can set "bselectedItem" and " var bselectedSmItem" parameters based on your link before you call your data file.
For example, move " var bselectedItem" and " var bselectedSmItem" parameters from your data file to your code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem= var bselectedSmItem= </script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
You should define seltabs and selsmtabs using server side script.
You can also set it on every page before you call data.js file, for example:
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=4;
var bselectedSmItem=3;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD&tg;
Q: It is possible to have context menu work with your tree?
More specifically, when you right click on a tree node, have a context menu appear.
A: Please, try to use this API function:
function apyt_ext_userRightClick(itemID)
More info you can find here:
http://dhtml-menu.com/tree-examples/dynamic-functions.html
Q: I purchased the most recent version of "JavaScript Tree Menu & Tree & Tabs & Window Multiple Website License", and now can't open menus from previous versions. When I try to open a custom drop down menu that was created in an older version, I get the error:
Can't open the file:
c:\webs\ltron\ltronmenudata.js
Check youre encode parameter
This happens on all of the older menus that we're trying to update............Do I have to run some type of conversion program on older menu files?
Please let me know as quickly as possible.........we have over 100 custom drop down menus out there and now it seems that we can't edit them!
A: This message means that you should change the encoding:
"Tools/Use utf8 encode"
Change this setting and then open your data files.
Q: I have just come across your page. I need to publish a mass of data on a site where javascript ist turned off. Is dynamic drop down menus able to work in an javascript free environment?
A: No, JavaScript Tree Menu is Javascript menu.
When your security settings doesn't allow Javascript onpages you load you can't see a dynamic page content. So, you cannotsee your javascript menu at all.