Is there a way to programmatically specify which tab is selected in the html tabs navigation?
Return to Recent Questions
Q:
Is there a way to programmatically specify which tab is selected in the html tabs navigation?
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>
Return to Recent Questions
Related:
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Nov 06, 2006 - Each item is a different width. Can I do this with your html navigation bar?...
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Dec 14, 2006 - How to use a dhtml javascript menu item so that it opens a window at a certain size?
- Dec 15, 2006 - I can't seem to have a "contact us" menu item to work in the html navigation menu.
- Feb 06, 2007 - We use IFrames and Frameset. Will Deluxe-Menu and Deluxe menu tabs work for us?
- Feb 07, 2007 - Can you create/destroy tabs javascript with only client side javascript
- Feb 11, 2007 - Is it possible for the dhtml sliding menu to highlight selected item on the page?
- Feb 17, 2007 - How I can edit/specify the color schemes on the Glass style tabs in html?
- March 08, 2007 - Which file(s) I must change to change the content of each tab in the tabs dhtml?
- March 15, 2007 - In my dynamic html menu I'm getting an error - Error: 'floatable' is undefined
|