Location: PHPKode > projects > Neobill > NeoBill0.5.6/include/dhtmlxTabbar/samples/tab_ajax_auto.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<title>DHTML TabBar sample. dhtmlXTabBar - TabBar - loading by AJAX</title>
	<link rel="STYLESHEET" type="text/css" href="../css/dhtmlXTabBar.css">
	<script type="text/javascript" src="../js/dhtmlXCommon.js"></script>
	<script type="text/javascript" src="../js/dhtmlXTabbar.js"></script>
	<script type="text/javascript" src="../js/dhtmlXTabbar_start.js"></script>
	<style type="text/css">
	body { font-family:arial;font-size:12px; font-size:12px}
	h1 {cursor:pointer;font-size:16px;margin-left:10px;line-height:10px}
	xmp {color:green;font-size:12px;margin:0;font-family:courier;background-color:#e6e6fa;padding:2px}
	div.hdr{
		background-color:silver;
		margin-bottom:10px;
		padding-left:10px;
	}
	</style>
</head>
<body>
	<div class="hdr">DHTML JavaScript Tabbar samples</div>
	<h1>TabBar - loading by AJAX</h1>
	<p>
		You can load tab content from server and automaticaly place it on page using ajax.
		For more details see corresponding documentation chapter.
	</p>
	<table>
		<tr>
			<td>
                <div hrefmode="ajax" id="a_tabbar" class="dhtmlxTabBar" imgpath="../imgs/" style="width:390px; height:390px;"  skinColors="#FCFBFC,#F4F3EE" >
                    <div id="b1" width="100" name="Tab 1" href="slow_ajax.php?num=1"></div>
                    <div id="b2" width="100" name="Tab 2" href="slow_ajax.php?num=2"></div>
                    <div id="b3" width="100" name="Tab 3" href="slow_ajax.php?num=3"></div>
                </div>
			</td>
        </tr>
	</table>
	<a href="#" onclick="tabbar.forceLoad('b2')">Force loading of second tab</a><br>
	<a href="#" onclick="tabbar.setContentHref('b1','slow_ajax.php?num=1&step=2')">Change first tab href</a>
<hr>
<XMP>
                <div hrefmode="ajax" id="a_tabbar" class="dhtmlxTabBar" imgpath="../imgs/" style="width:390px; height:390px;"  skinColors="#FCFBFC,#F4F3EE" >
                    <div id="b1" width="100" name="Tab 1" href="slow_ajax.php?num=1"></div>
                    <div id="b2" width="100" name="Tab 2" href="slow_ajax.php?num=2"></div>
                    <div id="b3" width="100" name="Tab 3" href="slow_ajax.php?num=3"></div>
                </div>
</XMP>

<br><br>
  <div id="out_zone"></div>
  <p><a href="http://www.scbr.com/docs/products/dhtmlxTabbar/index.shtml" style="font-weight:bold;">Go to the dhtmlxTabbar main page</a> or <a href="javascript:self.close()">Close this page</a></p>
</body>
</html>
Return current item: Neobill