After I successfully click and load the data in to my window using the mouseover tab, the tab defaults back to the original default tab.
Return to Recent Questions
Q:
I have another question.. after I successfully click and load the data in to
my window using the mouseover tab, 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. I know that I need to set
the var bselectedItem but if you have a "nifty" way for me to do that I am
all ears.
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=<?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, 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 - Can't see my javascript vertical tree menu in FireFox.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Oct 21, 2006 - I want to get the URL or file name to be open in javascript mouseover menu by click...
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 28, 2006 - Do I need any additional loaded software using the javascript select menu?
- Dec 15, 2006 - I can't seem to have a "contact us" menu item to work in the html navigation menu.
- Jan 01, 2007 - Does your vertical slide menu compatible with Namo WebEditor 2007?
- Jan 19, 2007 - The floating buttons turn white or unload and reload when hovered over.
- Feb 03, 2007 - The dhtml menu example looks different in IE and Firefox. In IE it is much
- Feb 21, 2007 - The down arrows of my vertical menu css only show on the main page, how to fix it?
|