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

<!--#include virtual="/include/meta.inc" -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<META NAME="KEYWORDS" CONTENT="dhtmlxtree, dhtml tree, javascript tree, java, dynamical loading, xml, API, cross-browser, javascript, dhtml, scand, treeview, navigation, menu, bar, script, javascript navigation, web-site, dynamic, dynamic menu, folder, folder tree, internet explorer, firefox, mozilla, opera, safari, tooltip, item, node, asp, .net, jsp, cold fusion, image, custom tag, loading, control, widget, web site, checkbox, drag, drop, drag and drop, component, html, offshore, software, outsourcing, development, company, advanced, efficient">
<META NAME="DESCRIPTION" CONTENT="Javascript DHTML Tree with XML support, cross-browser compatibility and rich JavaScript API. It allows to create attractive customizable DHTML JavaScript Tree Menu. Has checkboxes and drag-n-drop">

<!--#set var="title" value="dhtmlxTree - an advanced DHTML tree component with rich JavaScript API" -->
<!--#set var="picture" value="../../img/download/th_dhtmlxtree.gif" -->
<!--#set var="section" value="dhtmlxTree" -->

<link rel="STYLESHEET" type="text/css" href="css/dhtmlXTree.css">
<script type="text/javascript" src="js/dhtmlXCommon.js"></script>
<script type="text/javascript" src="js/dhtmlXTree.js"></script>
<script type="text/javascript">
	
	var tree1,tree2 = null;
	function doOnLoad(){
		preLoadImages();
		//tree #1
		tree1=new dhtmlXTreeObject(document.getElementById('treebox1'),"100%","100%",0);
		tree1.setImagePath("imgs/");
		tree1.setDragHandler();
		tree1.enableCheckBoxes(true)
		tree1.enableThreeStateCheckboxes(true);
		tree1.enableDragAndDrop(true)
		tree1.loadXML("tree.xml")
		//tree #2
		tree2=new dhtmlXTreeObject(document.getElementById('treebox2'),"100%","100%",0);
		tree2.setImagePath("imgs/");
		tree2.setDragHandler();
		tree2.enableTreeLines(false);
		tree2.enableDragAndDrop(true)
		tree2.loadXML("tree2.xml")
	}
	function preLoadImages(){
		var imSrcAr = new Array("line1.gif","line2.gif","line3.gif","line4.gif","minus2.gif","minus3.gif","minus4.gif","plus2.gif","plus3.gif","plus4.gif","book.gif","books_open.gif","books_close.gif","magazines_open.gif","magazines_close.gif","tombs.gif","tombs_mag.gif","book_titel.gif","iconCheckAll.gif")
		var imAr = new Array(0);
		for(var i=0;i<imSrcAr.length;i++){
			imAr[imAr.length] = new Image();
			imAr[imAr.length-1].src = "imgs/"+imSrcAr[i]
		}
	}
</script>

<!--#include virtual="/include/top.shtml" -->

<body onload="doOnLoad()">
<select onchange="document.location.href = this.value">
	<option>dhtmlX Components
	<option value="http://www.scbr.com/docs/products/dhtmlxMenu/index.shtml">Menu - dhtmlXMenu	
	<option value="http://www.scbr.com/docs/products/dhtmlxToolbar/index.shtml">Toolbar - dhtmlXToolbar
	<option value="http://www.scbr.com/docs/products/dhtmlxTree/index.shtml">Tree - dhtmlXTree
	<option value="http://www.scbr.com/docs/products/dhtmlxTreeGrid/index.shtml">TreeGrid - dhtmlXTreeGrid
	<option value="http://www.scbr.com/docs/products/dhtmlxGrid/index.shtml">Grid - dhtmlXGrid
</select>
<p>Often there is a need to show a hierarchically structured data.<br>
Our dhtmlxTree (DHTML extensions Tree) lets you do this in an easy and most comfortable way - in any browser! This <b>JavaScript Tree Menu component</b> allows creating user-friendly navigation bar for a commercial application or a web site. Menu items are organized into compact, hierarchical tree structure so users can find information they need easily.<br>
Having such feature, as <b>dynamical loading</b> of items from <b>XML</b> stream allows dhtmlxTree to handle large amounts of data. <b>Drag-and-drop</b> makes it possible to drag items not just within one tree, but between different trees. Try by yourself <b>now</b>:</p>
	
<table width="600">
	<tr>
		<td>
		<div 
			id="treebox1" 
			style="width:275px; height:250px; background-color:#f5f5f5;border :1px solid Silver;overflow:auto;">
		</div>
		</td>
		<td width="50">&nbsp;</td>
		<td>
		<div 
			id="treebox2" 
			style="width:275px; height:250px; background-color:#f5f5f5;border :1px solid Silver;overflow:auto;">
		</div>
		</td>
	</tr>
</table>
<font color="gray">
	Drag &amp; drop items within the trees as well as between trees<br>
	Double-click on folder label or click on [+] plus to expand subitems.
</font>
<br><br>
<p>Rich <b>client-side Javascript API</b> gives an opportunity to change tree styles (folder images, fonts, indents, and colors) and manage any part or activity. Our DHTML tree  works perfectly in all  main Web-browsers for <b>Windows, Mac OS X, Linux or Unix</b> so you don't have to care about the browser compatibility. <br>
dhtmlxTree has built-in <b>checkboxes</b> providing a handy tool for any kind of navigation system where selection lists are required. 
</p>

<table width="600">
	<tr>
		<td colspan="2">
			<h3>What's new in version 1.3* (April 18, 2006):</h3>
			<li>Editable Items</li>
			<li>Ability to automaticaly update server side on tree structure changes</li>
			<li>Distributed Loading</li>
			<li>Keyboard navigation</li>
			<li>Custom type sorting</li>
			<li>Ability to move items within/between trees with script API</li>
			<li>Extended Safari, Conqueror, Opera compatibility</li>
			<li>Multiselect, drag-n-drop multiple items</li>
			<li>Locked items</li>
			<li>Right-to-left languages support</li>
			<li>Error handling</li>
			<li>Drag-n-drop to/from <a href="http://www.scbr.com/docs/products/dhtmlxGrid/index.shtml">dhtmlxGrid</a></li>
		<br><small>* - some functionlity available in <a href="#editions">professional edition</a> only</small>
		<br><br>
		</td>
	</tr>
	<tr>
		<td valign="top">
		<h3>Supported Browsers:</h3>
			<li>IE 5.x and above</li>
			<li>Mac OS X Safari</li>
			<li>Mozilla 1.4 and above</li>
			<li>FireFox 0.9 and above</li>
			<li>Opera (Xml support depends on browser version)</li>
		
		<h3>Features:*</h3>
			<li>Multibrowser/Multiplatform support </li>
			<li>XHTML compartible</li>
			<li>Editable Items</li>
			<li>Keyboard navigation</li>
			<li>Multiselect</li>
			<li>Right-to-left languages support (RTL)</li>
			<li>Full controll with JavaScript API</li>
			<li>Dynamic loading</li>
			<li>Distributed Loading</li>
			<li>XML support</li>
			<li>Extended serialization to XML</li>
			<li>drag-&-drop (within one tree, between trees) </li>
			<li>customizable drag-&-drop to/from <a href="http://www.scbr.com/docs/products/dhtmlxGrid/index.shtml">dhtmlxGrid</a></li>
			<li>copy with drag-n-drop</li>
			<li>drop-between/drop-inside</li>
			<li>checkboxes (two/three states), disabled/hidden</li> 
			<li>customizable icons (with javascript or xml), icon size</li>
			<li>user data for nodes</li>
			<li>Async mode loading support </li>
			<li>.NET custom server control</li>
			<li>JSP custom tag</li>
			<li>Macromedia Cold Fusion support</li>
			<li>Detailed documentation</li>
			<br>
			<small>* - some functionlity available in <a href="#editions">professional edition</a> only</small>
		<h3>Editions</h3>
			<li>Standard - available for free download (for non-commercial use).</li>
			<li><a name="editions">Professional</a> - contains <a href="pro_features.html" target="_blank">additional features</a> (with examples) which are not present at standard edition. Included with Commercial and Enterprise licenses. <a href="mailto:hide@address.com">Contact us</a> to buy.<!--Click <a href=buy.shtml>here</a> to buy.--></li>
		<h3>Licensing</h3>
			<li><a target="_blank" href="License_GPL.txt">Open Source - GPL</a> (standard edition only)</li>
			<li><a target="_blank" name="license" href="License_Commercial.html">Commercial License</a> (standard and professional editions): in order to use any edition of dhtmlxTree in a commercial project, get all features available in <a href="#editions">professional edition</a> or to have support you can purchase a Commercial License ($99). <a href="mailto:hide@address.com">Contact us</a> to buy.<!--<a href=buy.shtml>here</a>.  - please <a href="mailto:hide@address.com">contact us</a --></li>
		</td>
		<td valign="top" style="padding-left:20px">
			<h3>Download:</h3>
				<a href="download/dhtmlxTree.zip"><li title="Scripts, Samples, Documentation, ColdFusion Tag">Full package (v.1.3 standard)</li></a>
				<a href="download/dhtmlxTreeDoc.zip"><li>Documentation only</li></a>
			<h3>Examples:</h3>
				<a target="_blank" href="samples/treeEx11.html"><li>Initialize object</li></a>
				<a target="_blank" href="samples/treeEx12.html"><li>Add/Delete items</li></a>
				<a target="_blank" href="samples/treeEx13.html"><li>Attached events</li></a>
				<a target="_blank" href="samples/treeEx21.html"><li>Collapse/Expand branch</li></a>
				<a target="_blank" href="samples/treeEx22.html"><li>Change item text/images</li></a>
				<a target="_blank" href="samples/treeEx23.html"><li>Checkboxes</li></a>
				<a target="_blank" href="samples/treeEx24.html"><li>Change design</li></a>
				<a target="_blank" href="samples/treeEx31.html"><li>Autoloading from xml</li></a>
				<a target="_blank" href="samples/treeEx32.html"><li>Drag and Drop</li></a>
				<a href="samples/dhtmlxTree_db_sample.zip"><li>Working with database (PHP/MySQL)</li></a>
			<h3>Documentation:</h3>
				<a target="_blank" href="doc/index.html"><li>API Functions and Documentation</li></a>
			<h3>Customers:</h3>
			<img src="imgs/_customers.gif" width="250" height="247" alt="" border="0" usemap="#custlist">
			<map name="custlist">
			<area target="_blank" alt="Siemens" coords="2,9,128,61" href="http://www.siemens.com">
			<area target="_blank" alt="Bank of America" coords="3,68,138,106" href="http://www.bofasecurities.com">
			<area target="_blank" alt="Securities Industry Automation Corporation" coords="142,9,235,60" href="http://www.siac.com">
			<area target="_blank" alt="Deutsche Bank" coords="1,112,168,143" href="http://www.db.com">
			<area target="_blank" alt="Sony Computer Entertainment Europe" coords="174,68,234,160" href="http://www.scee.com">
			<area target="_blank" alt="Samsung" coords="5,147,148,198" href="http://www.samsung.com">
			<area target="_blank" alt="Science Applications International Corporation " coords="116,202,217,242" href="http://www.saic.com">
			<area target="_blank" alt="Dallas Semiconductor" coords="154,165,243,199" href="http://www.dalsemi.com/">
			</map>

		</td>
	</tr>
</table>
<br>
<div align="center" style="width:600px"><h3><a href="download/dhtmlxTree.zip">Download latest version of javascript tree source code</a></h3></div>
<h3>Code Sample</h3>
	
<XMP style="color:green">
<link rel="STYLESHEET" type="text/css" href="jTreeX.css">
<script type="text/javascript" src="dhtmlXCommon.js"></script>
<script type="text/javascript" src="dhtmlXTree.js"></script>

<script type="text/javascript">
	var tree1 = null;
	function doOnLoad(){
		tree1=new dhtmlXTreeObject('treebox1',"100%","100%",0);
		tree1.setImagePath("imgs/");
		tree1.enableDragAndDrop(true);
		tree1.loadXML("tree.xml")
	}
</script>
<body onload="doOnLoad()">
<div 
	id="treebox1" 
	style="	width:250px;
		height:250px;
		background-color:#f5f5f5;
		border :1px solid Silver;
		overflow:auto;">
</div>
</XMP>	

<p>See also our <a href="../jtree/">Java tree applet - jTree</a>.</p>
<center><a href="http://scbr.com/docs/company.shtml" class=menu><img width=468 height=60 border=0 alt="" src=/img/b2.gif></a></center>

<!--#include virtual="/include/bottom.shtml" -->
Return current item: Neobill