Location: PHPKode > projects > SolidState Billing > SolidState0.5.50B/include/dhtmlxTabbar/doc/ogroup.html
<?xml version="1.0" encoding="utf-8"?><div style="position:absolute;right:20px"><a href="javascript:void(0)" onclick="expandAll(true)">expand</a><a href="javascript:void(0)" onclick="expandAll(false)">collaps</a></div>
		<script type="text/javascript"><!--
		
			function openFull(el) {
				el.nextSibling.style.display=='none'?el.nextSibling.style.display='block':el.nextSibling.style.display='none'
			}
			function expandAll(fl){
				var elAr = document.getElementsByTagName("DIV");
				for (var i=2;i<elAr.length;i++){
					if (elAr[i].style.display=='none' || elAr[i].block_fl){
						elAr[i].block_fl = true;
						if (fl)
							elAr[i].style.display = "";
						else
							elAr[i].style.display = "none";
					}
				}
			}
		
		--></script>
		<style type="text/css">
			body {font-family:arial;}
			h2 {cursor:pointer;font-size:16px;margin-left:10px;line-height:10px}
			h3 {cursor:pointer;font-weight:normal;color:gray;text-decoration:underline;line-height:10px}
			div.block {margin-left:30px;}
		</style><h2 onclick="openFull(this)">dhtmlXTabBar object API</h2><div class="block" style="display:show;"><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">addTab(id, text, size, position, row)<br /><strong style="color:#6c6c6c;font-size:12px">add tab to TabBar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">id - tab id</li><li type="circle">text - tab content</li><li type="circle">size - width(height) of tab</li><li type="circle">position - tab index , optional</li><li type="circle">row - index of row, optional  [only in PRO version]</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">clearAll()<br /><strong style="color:#6c6c6c;font-size:12px">reinitialize  tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">disableTab(tab,mode)<br /><strong style="color:#6c6c6c;font-size:12px">disable tab in tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><li type="circle">mode - if set to true, selection jump from current tab to nearest one</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableAutoReSize(mode)<br /><strong style="color:#6c6c6c;font-size:12px">enable / disable auto adjusting height and width   to outer conteiner</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - enable/disable</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableAutoSize(autoWidth,autoHeight)<br /><strong style="color:#6c6c6c;font-size:12px">enable disable auto adjusting height and width   to inner content</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">autoWidth - enable/disable auto adjusting width</li><li type="circle">autoHeight - enable/disable auto adjusting height</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableContentZone(mode)<br /><strong style="color:#6c6c6c;font-size:12px">enable/disable content zone (enabled by default)</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - true/false</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableForceHiding(mode)<br /><strong style="color:#6c6c6c;font-size:12px">enable/disable force hiding mode, solves IE problems with iframes in HTML content, but can cause problems for other dhtmlx components inside tabs</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - true/false</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableScroll(mode)
					[<span style="color:red;">Professional</span>]
				<br /><strong style="color:#6c6c6c;font-size:12px">enable/disable scrollers ( enabled by default )</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - true/false</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">enableTab(tab)<br /><strong style="color:#6c6c6c;font-size:12px">enable tab in tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">forceLoad(tabId,href)<br /><strong style="color:#6c6c6c;font-size:12px">forcing to load tab in question</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tabId - id of tab in question</li><li type="circle">href - new href, optional</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">getActiveTab()<br /><strong style="color:#6c6c6c;font-size:12px">get id of current active tab</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">getLabel(tab)<br /><strong style="color:#6c6c6c;font-size:12px">get label of tab</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">goToNextTab(tab)<br /><strong style="color:#6c6c6c;font-size:12px">select tab next to active</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">goToPrevTab(tab)<br /><strong style="color:#6c6c6c;font-size:12px">select tab previous to active</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">hideTab(tab,mode)<br /><strong style="color:#6c6c6c;font-size:12px">hide tab in tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><li type="circle">mode - if set to true, selection jump from current tab to nearest one</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">loadXML(file,afterCall)<br /><strong style="color:#6c6c6c;font-size:12px">load tabbar from xml file</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">file - link too XML file</li><li type="circle">afterCall - function which will be called after xml loading</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">loadXMLString(xmlString,afterCall)<br /><strong style="color:#6c6c6c;font-size:12px">load tabbar from xml string</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">xmlString - XML string</li><li type="circle">afterCall - function which will be called after xml loading</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">preventIECashing(mode)<br /><strong style="color:#6c6c6c;font-size:12px">prevent caching in IE  by adding random seed to URL string</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em><br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - enable/disable random seed ( disabled by default )</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">removeTab(tab,mode)<br /><strong style="color:#6c6c6c;font-size:12px">remove tab from tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><li type="circle">mode - if set to true, selection jump from current tab to nearest one</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setAlign(align)<br /><strong style="color:#6c6c6c;font-size:12px">set align of tabs on tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">align - left/right for gorizontal tabbar, top/bottom for vertical tabbar</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setContent(id,nodeId)<br /><strong style="color:#6c6c6c;font-size:12px">set content of tab</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">id - id of tab</li><li type="circle">nodeId - id of container, or container object</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setContentHref(id,href)<br /><strong style="color:#6c6c6c;font-size:12px">set content as a href to an external file</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">href - link too external file</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setContentHTML(id,html)<br /><strong style="color:#6c6c6c;font-size:12px">set content of tab, as HTML string</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">id - id of tab</li><li type="circle">html - html string</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setHrefMode(mode)<br /><strong style="color:#6c6c6c;font-size:12px">set mode of loading external content</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">mode - href mode - ifram/iframes/ajax</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setImagePath(path)<br /><strong style="color:#6c6c6c;font-size:12px">reinitialize  tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">path - path to image folder</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setLabel(tab,value)<br /><strong style="color:#6c6c6c;font-size:12px">set label of tab</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><li type="circle">value -  new label</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setMargin(margin)<br /><strong style="color:#6c6c6c;font-size:12px">set distance between tabs</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">margin - margin value</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setOffset(offset)<br /><strong style="color:#6c6c6c;font-size:12px">set offset before first tab on tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">offset - offset value</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setOnLoadingEnd(func)
					[<span style="color:red;">Professional</span>]
				<br /><strong style="color:#6c6c6c;font-size:12px">set function called after xml loading/parsing ended</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><br /><fieldset><legend>Event</legend><em style="color:blue;">Name:</em>onXMLLoadingEnd<br />event fired simultaneously with ending XML parsing, new items already available in tabbar<li type="square">tabbar object</li></fieldset><em style="color:blue;">Topic(s): </em><br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">func - event handling function</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setOnSelectHandler(func)<br /><strong style="color:#6c6c6c;font-size:12px">set content of tab</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><br /><fieldset><legend>Event</legend><em style="color:blue;">Name:</em>onClick<br />event called when any tab selected<li type="square">id - id of tab</li><br /><em style="color:blue;">Event returns:</em>if false returned the selection aborted</fieldset><em style="color:blue;">Topic(s): </em>Event Handlers; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">id - id of tab</li><li type="circle">nodeId - id of container, or container object</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setSize(width,height,contentZone)<br /><strong style="color:#6c6c6c;font-size:12px">set control size</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">width - new width</li><li type="circle">height - new height</li><li type="circle">contentZone - if set to true, than width and height set only to content zone</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setSkinColors(a_tab,p_tab,c_zone)<br /><strong style="color:#6c6c6c;font-size:12px">allow to set skin specific color, must be used AFTER selecting skin</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">a_tab - color of activ tab</li><li type="circle">p_tab - color of passive tab</li><li type="circle">c_zone - color of content zone  (optional)</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setStyle(name)<br /><strong style="color:#6c6c6c;font-size:12px">set style used for tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Initialization; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">name - any valid style name</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">setTabActive(tabId)<br /><strong style="color:#6c6c6c;font-size:12px">switch tab to active state</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tabId - id of tab</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">showTab(tab)<br /><strong style="color:#6c6c6c;font-size:12px">show hidden tab in tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab - id of tab</li><span /></div><div style="margin-top:5px;font-weight:bold;cursor:pointer;" onclick="openFull(this)">tabWindow(tab_id)<br /><strong style="color:#6c6c6c;font-size:12px">return window of tab content for iframe based tabbar</strong><br /><span /></div><div style="display:none;margin-left:20px;font-size:12px"><em style="color:blue;">Topic(s): </em>Visual appearence; 
			<br /><em style="color:blue;">File required:</em>dhtmlXTabbar.js<li type="circle">tab_id - tab id</li><span /></div><span /></div>
Return current item: SolidState Billing