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">
8 <title>TableTools example - Multiple tables</title>
9 <link rel="stylesheet" type="text/css" href="../../../media/css/jquery.dataTables.css">
10 <link rel="stylesheet" type="text/css" href="../css/dataTables.tableTools.css">
11 <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css">
12 <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css">
13 <style type="text/css" class="init">
16 <script type="text/javascript" language="javascript" src="../../../media/js/jquery.js"></script>
17 <script type="text/javascript" language="javascript" src="../../../media/js/jquery.dataTables.js"></script>
18 <script type="text/javascript" language="javascript" src="../js/dataTables.tableTools.js"></script>
19 <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script>
20 <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script>
21 <script type="text/javascript" language="javascript" class="init">
24 $(document).ready(function() {
25 $('#example').DataTable( {
26 dom: 'T<"clear">lfrtip'
34 <body class="dt-example">
35 <div class="container">
37 <h1>TableTools example <span>Multiple tables</span></h1>
40 <p>This example shows how multiple tables can be initialised with DataTables and TableTools in a single call to the <code>$().DataTable()</code> function.
41 Basically it works as you would expect - no special considerations need be made!</p>
44 <table id="" class="display" cellspacing="0" width="100%">
68 <td>System Architect</td>
75 <td>Senior Javascript Developer</td>
82 <td>Software Engineer</td>
96 <td>Personnel Lead</td>
109 <td>Martena Mccray</td>
110 <td>Post-Sales support</td>
116 <td>Jennifer Acosta</td>
117 <td>Junior Javascript Developer</td>
124 <td>Regional Director</td>
132 <table id="" class="display" cellspacing="0" width="100%">
156 <td>Office Manager</td>
162 <td>Haley Kennedy</td>
163 <td>Senior Marketing Designer</td>
169 <td>Tatyana Fitzpatrick</td>
170 <td>Regional Director</td>
176 <td>Michael Silva</td>
177 <td>Marketing Designer</td>
183 <td>Bradley Greer</td>
184 <td>Software Engineer</td>
190 <td>Angelica Ramos</td>
191 <td>Chief Executive Officer (CEO)</td>
204 <td>Prescott Bartlett</td>
205 <td>Technical Author</td>
211 <td>Timothy Mooney</td>
212 <td>Office Manager</td>
219 <td>Software Engineer</td>
225 <td>Hermione Butler</td>
226 <td>Regional Director</td>
233 <td>Systems Administrator</td>
242 <li class="active">Javascript</li>
246 <li>Server-side script</li>
251 <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
252 $('#example').DataTable( {
253 dom: 'T<"clear">lfrtip'
257 <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
260 <li><a href="../../../media/js/jquery.js">../../../media/js/jquery.js</a></li>
261 <li><a href="../../../media/js/jquery.dataTables.js">../../../media/js/jquery.dataTables.js</a></li>
262 <li><a href="../js/dataTables.tableTools.js">../js/dataTables.tableTools.js</a></li>
267 <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
272 <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
273 additional CSS used is shown below:</p><code class="multiline language-css"></code>
276 <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
279 <li><a href="../../../media/css/jquery.dataTables.css">../../../media/css/jquery.dataTables.css</a></li>
280 <li><a href="../css/dataTables.tableTools.css">../css/dataTables.tableTools.css</a></li>
285 <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
290 <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
291 processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
292 documentation</a>.</p>
300 <div class="gradient"></div>
303 <h2>Other examples</h2>
306 <div class="toc-group">
307 <h3><a href="./index.html">Examples</a></h3>
308 <ul class="toc active">
309 <li><a href="./simple.html">Basic initialisation</a></li>
310 <li><a href="./swf_path.html">Setting the SWF path</a></li>
311 <li><a href="./new_init.html">Initialisation with `new`</a></li>
312 <li><a href="./defaults.html">Defaults</a></li>
313 <li><a href="./select_single.html">Row selection - single row select</a></li>
314 <li><a href="./select_multi.html">Row selection - multi-row select</a></li>
315 <li><a href="./select_os.html">Row selection - operating system style</a></li>
316 <li><a href="./select_column.html">Row selection - row selector on specific cells</a></li>
317 <li class="active"><a href="./multiple_tables.html">Multiple tables</a></li>
318 <li><a href="./multi_instance.html">Multiple toolbars</a></li>
319 <li><a href="./collection.html">Button collections</a></li>
320 <li><a href="./plug-in.html">Plug-in button types</a></li>
321 <li><a href="./button_text.html">Custom button text</a></li>
322 <li><a href="./alter_buttons.html">Button arrangement</a></li>
323 <li><a href="./ajax.html">Ajax loaded data</a></li>
324 <li><a href="./pdf_message.html">PDF message</a></li>
325 <li><a href="./bootstrap.html">Bootstrap styling</a></li>
326 <li><a href="./jqueryui.html">jQuery UI styling</a></li>
331 <div class="epilogue">
332 <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
333 Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a>
334 which extend the capabilities of DataTables.</p>
336 <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
337 DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>