DHTMLX Docs & Samples Explorer

Initialization from xml

 
Source
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Initialization from xml</title>
	
</head>

<body>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	<h1>Initialize object on page</h1>
	<p>You can place this JavaScript tree menu anywhere on your web page, attaching the tree 
	to any object.<br>
	 Set up tree parameters to determine the appearance of the tree. 
	 Specify whether the tree items will be loaded dynamically from XML. dhtmlxTree uses
	 AJAX for fast and flexible data loading.</p>
	
	<table>
		<tr>
			<td>
				<div id="treeboxbox_tree" style="width:250px; height:218px;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"/>
			</td>
			<td rowspan="2" style="padding-left:25" valign="top">

		
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
	<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);

			tree.setSkin('dhx_skyblue');
			tree.setImagePath("../../../codebase/imgs/dhxtree_skyblue/");
			tree.loadXML("../common/tree.xml");
	</script>

</body>
</html>