summaryrefslogtreecommitdiffstats
path: root/samples/dataview/02_dynamic_loading.html
blob: 5c0866ef7490d98cc12bcc95ff158339bd87a7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
	<title>Dynamic loading</title>
	<script src="../dhtmlx/dhtmlx.js" type="text/javascript"></script>
	<link rel="STYLESHEET" type="text/css" href="../dhtmlx/dhtmlx.css">  
	
	<style type="text/css" media="screen">
		body { background-color:#EBEBEB; };
	</style>
</head>
<body>
	<h1>Dynamic loading</h1>
	<p>Data is loaded to the DataView on demand</p>
	
	<div id="data_container" style="border:1px solid #A4BED4; background-color:white; width:710px;height:392px;"></div>
	<br>
	<script>
		data = new dhtmlXDataView({
			container:"data_container",
			type:{
				template:"<span class='dhx_strong'>{obj.Maintainer}</span>{obj.Package} <span class='dhx_light'>{obj.Version}</span>",
				height:35
			}
		});
		data.load("02_dynamic_loading.php");
	</script>

</body>
</html>