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>KeyTable example - Plain HTML table</title>
9 <link rel="stylesheet" type="text/css" href="../../../media/css/jquery.dataTables.css">
10 <link rel="stylesheet" type="text/css" href="../css/dataTables.keyTable.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.keyTable.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').addClass('KeyTable');
26 new $.fn.dataTable.KeyTable();
33 <body class="dt-example">
34 <div class="container">
36 <h1>KeyTable example <span>Plain HTML table</span></h1>
39 <p>As well as being usable with DataTables, KeyTable can also be used with a plain HTML table. Please
40 note that this ability is deprecated and will be removed in KeyTable 1.3.</p>
42 <p>This example shows KeyTable being initialised without any parameter, which instructs it to search
43 for any table with the class <code>KeyTable</code> which will be used.</p>
46 <table id="example" class="display" cellspacing="0" width="100%">
72 <td>System Architect</td>
79 <td>Garrett Winters</td>
88 <td>Junior Technical Author</td>
89 <td>San Francisco</td>
96 <td>Senior Javascript Developer</td>
111 <td>Brielle Williamson</td>
112 <td>Integration Specialist</td>
119 <td>Herrod Chandler</td>
120 <td>Sales Assistant</td>
121 <td>San Francisco</td>
127 <td>Rhona Davidson</td>
128 <td>Integration Specialist</td>
135 <td>Colleen Hurst</td>
136 <td>Javascript Developer</td>
137 <td>San Francisco</td>
144 <td>Software Engineer</td>
152 <td>Office Manager</td>
160 <td>Support Lead</td>
167 <td>Charde Marshall</td>
168 <td>Regional Director</td>
169 <td>San Francisco</td>
175 <td>Haley Kennedy</td>
176 <td>Senior Marketing Designer</td>
183 <td>Tatyana Fitzpatrick</td>
184 <td>Regional Director</td>
191 <td>Michael Silva</td>
192 <td>Marketing Designer</td>
200 <td>Chief Financial Officer (CFO)</td>
207 <td>Gloria Little</td>
208 <td>Systems Administrator</td>
215 <td>Bradley Greer</td>
216 <td>Software Engineer</td>
224 <td>Personnel Lead</td>
231 <td>Jenette Caldwell</td>
232 <td>Development Lead</td>
240 <td>Chief Marketing Officer (CMO)</td>
247 <td>Caesar Vance</td>
248 <td>Pre-Sales Support</td>
255 <td>Doris Wilder</td>
256 <td>Sales Assistant</td>
263 <td>Angelica Ramos</td>
264 <td>Chief Executive Officer (CEO)</td>
279 <td>Jennifer Chang</td>
280 <td>Regional Director</td>
287 <td>Brenden Wagner</td>
288 <td>Software Engineer</td>
289 <td>San Francisco</td>
296 <td>Chief Operating Officer (COO)</td>
297 <td>San Francisco</td>
304 <td>Regional Marketing</td>
311 <td>Michelle House</td>
312 <td>Integration Specialist</td>
327 <td>Prescott Bartlett</td>
328 <td>Technical Author</td>
335 <td>Gavin Cortez</td>
337 <td>San Francisco</td>
343 <td>Martena Mccray</td>
344 <td>Post-Sales support</td>
351 <td>Unity Butler</td>
352 <td>Marketing Designer</td>
353 <td>San Francisco</td>
359 <td>Howard Hatfield</td>
360 <td>Office Manager</td>
361 <td>San Francisco</td>
367 <td>Hope Fuentes</td>
369 <td>San Francisco</td>
375 <td>Vivian Harrell</td>
376 <td>Financial Controller</td>
377 <td>San Francisco</td>
383 <td>Timothy Mooney</td>
384 <td>Office Manager</td>
391 <td>Jackson Bradshaw</td>
399 <td>Olivia Liang</td>
400 <td>Support Engineer</td>
408 <td>Software Engineer</td>
415 <td>Sakura Yamamoto</td>
416 <td>Support Engineer</td>
431 <td>Finn Camacho</td>
432 <td>Support Engineer</td>
433 <td>San Francisco</td>
439 <td>Serge Baldwin</td>
440 <td>Data Coordinator</td>
447 <td>Zenaida Frank</td>
448 <td>Software Engineer</td>
455 <td>Zorita Serrano</td>
456 <td>Software Engineer</td>
457 <td>San Francisco</td>
463 <td>Jennifer Acosta</td>
464 <td>Junior Javascript Developer</td>
471 <td>Cara Stevens</td>
472 <td>Sales Assistant</td>
479 <td>Hermione Butler</td>
480 <td>Regional Director</td>
488 <td>Systems Administrator</td>
495 <td>Jonas Alexander</td>
497 <td>San Francisco</td>
504 <td>Regional Director</td>
511 <td>Michael Bruce</td>
512 <td>Javascript Developer</td>
519 <td>Donna Snider</td>
520 <td>Customer Support</td>
530 <li class="active">Javascript</li>
534 <li>Server-side script</li>
539 <p>The Javascript shown below is used to initialise the table shown in this
540 example:</p><code class="multiline brush: js;">$(document).ready(function() {
541 $('#example').addClass('KeyTable');
542 new $.fn.dataTable.KeyTable();
545 <p>In addition to the above code, the following Javascript library files are loaded for use in this
549 <li><a href="../../../media/js/jquery.js">../../../media/js/jquery.js</a></li>
551 "../../../media/js/jquery.dataTables.js">../../../media/js/jquery.dataTables.js</a></li>
552 <li><a href="../js/dataTables.keyTable.js">../js/dataTables.keyTable.js</a></li>
557 <p>The HTML shown below is the raw HTML table element, before it has been enhanced by
563 <p>This example uses a little bit of additional CSS beyond what is loaded from the library
564 files (below), in order to correctly display the table. The additional CSS used is shown
565 below:</p><code class="multiline brush: js;"></code>
568 <p>The following CSS library files are loaded for use in this example to provide the styling of the
573 "../../../media/css/jquery.dataTables.css">../../../media/css/jquery.dataTables.css</a></li>
574 <li><a href="../css/dataTables.keyTable.css">../css/dataTables.keyTable.css</a></li>
579 <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data
580 will update automatically as any additional data is loaded.</p>
584 <p>The script used to perform the server-side processing for this table is shown below. Please note
585 that this is just an example script using PHP. Server-side processing scripts can be written in any
586 language, using <a href="//datatables.net/manual/server-side">the protocol described in the
587 DataTables documentation</a>.</p>
595 <div class="gradient"></div>
598 <h2>Other examples</h2>
601 <div class="toc-group">
602 <h3><a href="./index.html">Examples</a></h3>
603 <ul class="toc active">
604 <li><a href="./simple.html">Basic initialisation</a></li>
605 <li><a href="./events.html">Events</a></li>
606 <li><a href="./scrolling.html">Scrolling table</a></li>
607 <li class="active"><a href="./html.html">Plain HTML table</a></li>
612 <div class="epilogue">
613 <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full
614 information about its API properties and methods.<br>
615 Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and
616 <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of
619 <p class="copyright">DataTables designed and created by <a href=
620 "http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2014<br>
621 DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>