Can you guide me on how to change tab selection dynamically for the tabbed navigation
Return to Recent Questions
Q:
I have a question regarding deluxe tab implementation.
Can you guide me on how to change tab selection dynamically for the tabbed navigation.
A:
Deluxe Tabs doesn't support API functions which can return the selected tab.
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:
- Feb 27, 2009 - If we spot a bug in the javascript menu code, what can be planned to have it corrected?
- April 21, 2009 - I now wish to dynamically change the drop down menu in html parameters.
- Nov 05, 2009 - If I click on another of the 4 tabs in my navigation tabs, the content doesn't change.
- July 14, 2010 - The mouse cursor changes to a hand, when the item of web navigation bar is mouse over.
- July 23, 2010 - In IE first tab of tabbed navigation is coming selected but in firefox it is not coming selected.
- September 11, 2010 - How can change a displayed tab selection to another one in the dynamic menu tabs
- October 6, 2010 - Can I pass a selection from cascading navigation bar to a form?
- November 8, 2010 - How can I change supported language in sliding navigation bar?
- November 5, 2010 - How do I change the font style for menus to bold, but leave the sub-menus normal in the html navigation bar?
- November 29, 2010 - Is it possible to change the background color of just one of the menu buttons within a sub navigation bar
- January 3, 2011 - Can you provide an example of how to dynamically change the menu items at runtime for the dropdown menus?
|