| 875 |
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 |
<link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css">
|
|
|
8 |
<link rel="stylesheet" type="text/css" href="../resources/demo.css">
|
|
|
9 |
<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
|
|
10 |
<script type="text/javascript" language="javascript" src="../resources/syntax/shCore.js"></script>
|
|
|
11 |
<script type="text/javascript" language="javascript" src="../resources/demo.js"></script>
|
|
|
12 |
|
|
|
13 |
<title>DataTables examples - Server-side processing</title>
|
|
|
14 |
</head>
|
|
|
15 |
|
|
|
16 |
<body class="dt-example">
|
|
|
17 |
<div class="container">
|
|
|
18 |
<section>
|
|
|
19 |
<h1>DataTables example <span>Server-side processing</span></h1>
|
|
|
20 |
|
|
|
21 |
<div class="info">
|
|
|
22 |
<p>There are many ways to get your data into DataTables, and if you are working with seriously large databases, you might want to consider using the server-side
|
|
|
23 |
options that DataTables provides. With server-side processing enabled, all paging, searching, ordering etc actions that DataTables performs are handed off to a
|
|
|
24 |
server where an SQL engine (or similar) can perform these actions on the large data set (after all, that's what the database engine is designed for!). As such,
|
|
|
25 |
each draw of the table will result in a new Ajax request being made to get the required data.</p>
|
|
|
26 |
|
|
|
27 |
<p>Server-side processing is enabled by setting the <a href="//datatables.net/reference/option/serverSide"><code class="option" title=
|
|
|
28 |
"DataTables initialisation option">serverSide</code></a> option to <code>true</code> and providing an Ajax data source through the <a href=
|
|
|
29 |
"//datatables.net/reference/option/ajax"><code class="option" title="DataTables initialisation option">ajax</code></a> option.</p>
|
|
|
30 |
|
|
|
31 |
<p>The examples in this section shows server-side processing in use and how it can be customised to suit your needs.</p>
|
|
|
32 |
</div>
|
|
|
33 |
</section>
|
|
|
34 |
</div>
|
|
|
35 |
|
|
|
36 |
<section>
|
|
|
37 |
<div class="footer">
|
|
|
38 |
<div class="gradient"></div>
|
|
|
39 |
|
|
|
40 |
<div class="liner">
|
|
|
41 |
<div class="toc">
|
|
|
42 |
<div class="toc-group">
|
|
|
43 |
<h3><a href="./index.html">Server-side</a></h3>
|
|
|
44 |
<ul class="toc">
|
|
|
45 |
<li><a href="./simple.html">Server-side processing</a></li>
|
|
|
46 |
<li><a href="./custom_vars.html">Custom HTTP variables</a></li>
|
|
|
47 |
<li><a href="./post.html">POST data</a></li>
|
|
|
48 |
<li><a href="./ids.html">Automatic addition of row ID attributes</a></li>
|
|
|
49 |
<li><a href="./object_data.html">Object data source</a></li>
|
|
|
50 |
<li><a href="./row_details.html">Row details</a></li>
|
|
|
51 |
<li><a href="./select_rows.html">Row selection</a></li>
|
|
|
52 |
<li><a href="./jsonp.html">JSONP data source for remote domains</a></li>
|
|
|
53 |
<li><a href="./defer_loading.html">Deferred loading of data</a></li>
|
|
|
54 |
<li><a href="./pipeline.html">Pipelining data to reduce Ajax calls for paging</a></li>
|
|
|
55 |
</ul>
|
|
|
56 |
</div>
|
|
|
57 |
</div>
|
|
|
58 |
|
|
|
59 |
<div class="epilogue">
|
|
|
60 |
<p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
|
|
|
61 |
Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href=
|
|
|
62 |
"http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p>
|
|
|
63 |
|
|
|
64 |
<p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
|
|
|
65 |
DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
</section>
|
|
|
70 |
</body>
|
|
|
71 |
</html>
|