JavaScripts for Your Website : Menu, Tree, DHTML, Popup, Outlook Bar, Free Scripts :: CodeThat :: CodeThat.Com offers JavaScript solutions. Our Google and web keywords are: browser menu, javascript horizontal menu dhtml javascript how to do a menu javascript, javascript source menu javascript transparency menu js dhtml menu submenu css, menu scripts dhtml calendar dhtml drop down menu dhtml menu dhtml menu builders, dhtml menu maker dhtml popup menu dhtml shade menu download free javascripts, download javascript dragable menu drop down menu dropdown menu fancy menu free, javascript scripts free javascript tree menu free javascripts html javascript, tree image javascript calendar javascript collapsible menu javascript drop down, menu javascript example javascript menu javascript menu example javascript popup, menu javascript tree javascript tree menu javascript tree navigation menu, builder javascript menu javascript navigation script popup menu professional, dhtml menu professional js menu professional menu professional tree menu pull, down menu pull down menu for web site tree menu tree navigation

PRODUCTS

JavaScript Projects

PHP Projects

Javascript Tools

SUPPORT

Standard vs PRO

FAQ

Contacts

Site Map

CODETHAT

Downloads

Users Testimonials

Our Customers

STUDIO   GRID   TABLE   MENU   TREE   XPBAR   HINT   EDITOR   TAB   FORM   CALENDAR   SCROLLER   SHOPPINGCART   TREEPHP   PACKER

User Manual

Introduction    Tab look    Tab action    Tab positioning

Tab manipulating    Using XML    Tab reference    Standard vs PRO

123Guide    Examples    Download

Themes

CODETHATTAB USER MANUAL

Tab Manipulation

With CodeThatTable you can set current tab in run-time. It is useful if you want to use the same tab at few pages and have different current tabs after page loaded.

Method setCurrTab(text)

This method sets current tab in tab control by text of tab.

You can use this function by using constructin like this:

<form>
  Set current item:<select onChange="ts.setCurrTab(this.options[this.selectedIndex].value)">
    <option value="URL">URL</option>
    <option value="JS">JS</option>
    <option value="JSOVER">JSOVER</option>
    <option value="JSOUT">JSOUT</option>
  </select>
</form>

<script language="javascript1.2">
<!--

var tabDef = {
	...
}
var ts = new TabSet();
ts.create(tabDef); 

//-->
</script>

or

<script language="javascript1.2">
<!--

var tabDef = {
	...
}
var ts = new TabSet();
ts.create(tabDef);
ts.setCurrTab('Home'); 

//-->
</script>

Example - Tab Manipulating

You can see an example and complete code here - Tab Manipulating [popup]

Use Parameter urlParam

You can set active tab from the url of page with tabSet. For this you have to specify parameter urlParam with name of variable that will contains index of active tab.

	...
	urlParam : "p"
	...

Note! The index of tabs starts from 0.

Here is example how you can use urlParam within CodeThatTab: urlParam Example [popup]

Read more about CodeThatTab >>

[ Home ]  [ Contacts ]  [ Site Map ]  [ News ]  [ Links ]  [ Downloads ]

[ Go Top ]

© CodeThat.com, 2003-2010
Design by XTLabs, Inc
Sponsored by Rocket Division Software, LTD.