Recent Questions Asp Net Treeview Template
Q: How can I from javascript code change a displayed tab selection to another one in the dynamic menu tabs... lets say from first tab to the third tab?
A: This Tabs menu can save pressed item automatically within1 page only.
If you open another page, the menu can't remember presseditem.
You should do that manually using Javascript and menu parameters
( var bselectedItem and var var bselectedSmItem) or using any server-side script (php, asp, etc.)
Deluxe Tabs doesn't support API functions which can return theselected tab.
If your site is written on PHP you can set "bselectedItem" and "varbselectedSmItem" parameters
based on your link beforeyou call your data file.
For example, move "bselectedItem" and " var bselectedSmItem" parametersfrom your data file to your code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
var bselectedSmItem=<?php echo $selsmtabs; ?>;
</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, forexample:
<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>
Try that.
Q: I am evaluating your fine menu builder application.
Please let me know the following:
a) How could I call a script instead of specifying a link?
["|Product A","http://dhtml-menu.com","","","",,"0",],
b) If the above is possible, please let me know how, in the called script, I could know where the call to the script come from.
A: You can use your own javascript functions in the menu items.
You should paste "javascript:some_function()" into item's link field, for example:
var menuItems = [
["text", "javascript:your_function(...)", ...]
];
Q: I have downloaded the trial version of the tree menu to use it to create our products list that will be distributed on a CD. We have decided to buy it but we are confused which license we should buy!
Which license we should buy?
A: To use Javascript/DHTML Tree on CD/DVD you should buy developer license.
Other licenses allow you to use the menu on Internet / Intranetwebsites only.
With the Developer license you can use the menu on an unlimited number ofInternet or Intranet sites and on the local machines.
This version of the script doesn't check keys and it isn't bound to adomain name, so it can be used with an application that doesn't have afixed domain name. There is also no need to add <noscript> tag to eachpage.
See in Single Website License, Multiple Website License and DeveloperLicense our source code is obfuscated.
And in Developer License with Javascript Source Code you can see thecode and change it. This is unique difference between Developerlicense and Developer license with source code.
Q: I want to use java sliding menu Deluxe as a data-entry system. I can see how to use the dynamic facilities to allow the user to create and populate nodes but at the end of the client's work I would like them to hit 'submit' on a form and pass all data they have created to the server for processing. How do I pass the data back to the server in the java sliding menu?
A: You are able to paste any html code within java sliding menu items.
For example:
var tmenuItems = [
...
["<nobr><FORM method=GET action='http://www.google.com/custom'><input name='as_q' value='searchthe web' size=15 style='font-size:10'> <INPUT type=hidden name=cof value='LW:144;L:http://domain.edu/images/sulogo.gif;LH:45;AH:center;GL:0;S:http://domain.edu;AWFID:e01cb67b8afe383e;'> </form></nobr>","", "images/icons/search.gif", "", "", "", "", "", "", "", "",],
You should write your own code within menuItem.