What do you recommend for "remembering" the tab in the js tab menu?
Return to Recent Questions
Q:
What do you recommend for "remembering" the tab in the js tab menu, 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=<?php echo $seltabs; ?>;
var bselectedSmItem=^lt;?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 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 29, 2006 - I am still struggling with multiple menus js on one page.
- Dec 04, 2006 - With the licensed .js files of menu dhtml the status bar on IE shows "Error on page".
- Dec 09, 2006 - Is there any way to change the font size of the secondary and tertiary links in menu.js?
- Dec 11, 2006 - Is there a way to get rid of the spacing on the main jscript menu?
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 25, 2006 - How do you created a multiple column for only one menu js item.
|