Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
9 lars 1
<!DOCTYPE html>
2
<html>
3
<head>
4
	<meta charset="utf-8">
5
	<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
6
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
7
 
8
	<title>Scroller example - jQuery UI</title>
9
	<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css">
10
	<link rel="stylesheet" type="text/css" href="../../../../media/css/dataTables.jqueryui.css">
11
	<link rel="stylesheet" type="text/css" href="../../css/scroller.jqueryui.css">
12
	<link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
13
	<link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
14
	<style type="text/css" class="init">
15
 
16
	</style>
17
	<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>
18
	<script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js"></script>
19
	<script type="text/javascript" language="javascript" src="../../../../media/js/dataTables.jqueryui.js"></script>
20
	<script type="text/javascript" language="javascript" src="../../js/dataTables.scroller.js"></script>
21
	<script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js"></script>
22
	<script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js"></script>
23
	<script type="text/javascript" language="javascript" class="init">
24
 
25
 
26
$(document).ready(function() {
27
	$('#example').DataTable( {
28
		ajax:           "../data/2500.txt",
29
		deferRender:    true,
30
		scrollY:        200,
31
		scrollCollapse: true,
32
		scroller:       true
33
	} );
34
} );
35
 
36
 
37
	</script>
38
</head>
39
 
40
<body class="dt-example dt-example-jqueryui">
41
	<div class="container">
42
		<section>
43
			<h1>Scroller example <span>jQuery UI</span></h1>
44
 
45
			<div class="info">
46
				<p>This example shows DataTables and Scroller being used with <a href="http://jqueryui.com/">jQuery UI</a> providing the base styling information.</p>
47
			</div>
48
 
49
			<table id="example" class="display nowrap" cellspacing="0" width="100%">
50
				<thead>
51
					<tr>
52
						<th>ID</th>
53
						<th>First name</th>
54
						<th>Last name</th>
55
						<th>ZIP / Post code</th>
56
						<th>Country</th>
57
					</tr>
58
				</thead>
59
			</table>
60
 
61
			<ul class="tabs">
62
				<li class="active">Javascript</li>
63
				<li>HTML</li>
64
				<li>CSS</li>
65
				<li>Ajax</li>
66
				<li>Server-side script</li>
67
			</ul>
68
 
69
			<div class="tabs">
70
				<div class="js">
71
					<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
72
	$('#example').DataTable( {
73
		ajax:           &quot;../data/2500.txt&quot;,
74
		deferRender:    true,
75
		scrollY:        200,
76
		scrollCollapse: true,
77
		scroller:       true
78
	} );
79
} );</code>
80
 
81
					<p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
82
 
83
					<ul>
84
						<li><a href="//code.jquery.com/jquery-1.11.3.min.js">//code.jquery.com/jquery-1.11.3.min.js</a></li>
85
						<li><a href="../../../../media/js/jquery.dataTables.js">../../../../media/js/jquery.dataTables.js</a></li>
86
						<li><a href="../../../../media/js/dataTables.jqueryui.js">../../../../media/js/dataTables.jqueryui.js</a></li>
87
						<li><a href="../../js/dataTables.scroller.js">../../js/dataTables.scroller.js</a></li>
88
					</ul>
89
				</div>
90
 
91
				<div class="table">
92
					<p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
93
				</div>
94
 
95
				<div class="css">
96
					<div>
97
						<p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The
98
						additional CSS used is shown below:</p><code class="multiline language-css"></code>
99
					</div>
100
 
101
					<p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
102
 
103
					<ul>
104
						<li><a href="//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css">//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css</a></li>
105
						<li><a href="../../../../media/css/dataTables.jqueryui.css">../../../../media/css/dataTables.jqueryui.css</a></li>
106
						<li><a href="../../css/scroller.jqueryui.css">../../css/scroller.jqueryui.css</a></li>
107
					</ul>
108
				</div>
109
 
110
				<div class="ajax">
111
					<p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is
112
					loaded.</p>
113
				</div>
114
 
115
				<div class="php">
116
					<p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
117
					processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
118
					documentation</a>.</p>
119
				</div>
120
			</div>
121
		</section>
122
	</div>
123
 
124
	<section>
125
		<div class="footer">
126
			<div class="gradient"></div>
127
 
128
			<div class="liner">
129
				<h2>Other examples</h2>
130
 
131
				<div class="toc">
132
					<div class="toc-group">
133
						<h3><a href="../initialisation/index.html">Initialisation</a></h3>
134
						<ul class="toc">
135
							<li><a href="../initialisation/simple.html">Basic initialisation</a></li>
136
							<li><a href="../initialisation/state_saving.html">State saving</a></li>
137
							<li><a href="../initialisation/large_js_source.html">Client-side data source (50,000 rows)</a></li>
138
							<li><a href="../initialisation/server-side_processing.html">Server-side processing (5,000,000 rows)</a></li>
139
							<li><a href="../initialisation/api_scrolling.html">API</a></li>
140
							<li><a href="../initialisation/fixedColumns.html">FixedColumns integration</a></li>
141
						</ul>
142
					</div>
143
 
144
					<div class="toc-group">
145
						<h3><a href="./index.html">Styling</a></h3>
146
						<ul class="toc active">
147
							<li><a href="./bootstrap.html">Bootstrap</a></li>
148
							<li><a href="./foundation.html">Foundation</a></li>
149
							<li class="active"><a href="./jqueryui.html">jQuery UI</a></li>
150
						</ul>
151
					</div>
152
				</div>
153
 
154
				<div class="epilogue">
155
					<p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
156
					Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href=
157
					"http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p>
158
 
159
					<p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2015<br>
160
					DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
161
				</div>
162
			</div>
163
		</div>
164
	</section>
165
</body>
166
</html>