What do you recommend for "remembering" the tab so that when the page reloads the correct tab is highlighted in the tab menu.
Return to Recent Questions
Q:
After I successfully click and load the data in to
my window using the tab menu, the tab defaults back to the original default tab.
Because I have to reload my page after the tab has been selected the tab
chosen is lost. What do you recommend for "remembering" the tab so that when
the page reloads the correct tab is highlighted.
A:
Deluxe Tabs doesn't support API functions which can return the
selected tab aslo.
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 first item of the html drop down menu stays highlighted.
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Oct 21, 2006 - It appears that this javascript expand menu only supports IE (on the PC and Mac).
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 20, 2006 - We need to have 2 javascript hover menu on one page.
- Dec 05, 2006 - I can not createPopup windows by clicking on a menu.
- Dec 23, 2006 - When I have tried to look my side menu bar in the browser it has the active x message
- Jan 09, 2007 - I'm still can't understand how to make drop down menus
- Jan 27, 2007 - The Janarator image does not show javascript menu example
- Jan 29, 2007 - Is this java script drop down menu floatable?
- Feb 06, 2007 - We use IFrames and Frameset. Will Deluxe-Menu and Deluxe menu tabs work for us?
|