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 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Oct 05, 2006 - Do you have a working sample of the loading bar with PHP/ MySQL?
- Nov 04, 2006 - There are the features that, unfortunately, cannot be done in javascript drop 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 ?
- Nov 27, 2006 - In Firefox, the drop down menu html is displayed to the right of the top menu text
- 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.
- Dec 31, 2006 - Is there a way to use the javascript floating bar without generating the warning?
- Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
|