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 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Oct 21, 2006 - I want to get the URL or file name to be open in javascript mouseover menu by click...
- March 20, 2007 - Is there a way to set the default java tab showing on a page load?
- April 21, 2007 - I need to be able to execute some javascript when I click on a javascript menu tab
- June 09, 2007 - The drop down menu software did not except to put another language
- June 09, 2007 - I seems to select the second tab by default in my tab javascript menu.
- June 29, 2007 - When I click on the javascript menu tab always only one tab is selected.
- Aug 14, 2007 - How can your javascript onmouseover menu be set to open by click?
- Aug 21, 2007 - How do I get the content to refresh when I click on a tabs javascript?
- Oct 04, 2007 - The state of the javascript tab menu selected reverts back to the default tab
- Nov 06, 2007 - bitebackimage is not showing in the dhtml tabs menu samples
|