comparison DataTables-1.9.4/extras/KeyTable/datatable.html @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ac5f9272033b
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5 <link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico" />
6
7 <title>KeyTable / DataTables example</title>
8 <style type="text/css" title="currentStyle">
9 @import "../../media/css/demo_page.css";
10 @import "../../media/css/demo_table.css";
11 </style>
12 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.js"></script>
13 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.dataTables.js"></script>
14 <script type="text/javascript" charset="utf-8" src="js/KeyTable.js"></script>
15 <script type="text/javascript" charset="utf-8">
16 $(document).ready( function () {
17 var oTable = $('#example').dataTable();
18
19 var keys = new KeyTable( {
20 "table": document.getElementById('example'),
21 "datatable": oTable
22 } );
23 } );
24 </script>
25 </head>
26 <body id="dt_example">
27 <div id="container">
28 <div class="full_width big">
29 KeyTable with DataTables integration example
30 </div>
31
32 <h1>Preamble</h1>
33 <p>KeyTable will work great with any plain HTML table, but it also integrates with <a href="http://www.datatables.net/">DataTables</a> plug-in for jQuery. This allows the navigation to take account of paging, sorting etc. This is shown in an example below.</p>
34
35 <h1>Live example</h1>
36 <div id="demo">
37 <table cellpadding="0" cellspacing="0" border="0" class="display KeyTable" id="example">
38 <thead>
39 <tr>
40 <th>Rendering engine</th>
41 <th>Browser</th>
42 <th>Platform(s)</th>
43 <th>Engine version</th>
44 <th>CSS grade</th>
45 </tr>
46 </thead>
47 <tbody>
48 <tr class="gradeX">
49 <td>Trident</td>
50 <td>Internet
51 Explorer 4.0</td>
52 <td>Win 95+</td>
53 <td class="center">4</td>
54 <td class="center">X</td>
55 </tr>
56 <tr class="gradeC">
57 <td>Trident</td>
58 <td>Internet
59 Explorer 5.0</td>
60 <td>Win 95+</td>
61 <td class="center">5</td>
62 <td class="center">C</td>
63 </tr>
64 <tr class="gradeA">
65 <td>Trident</td>
66 <td>Internet
67 Explorer 5.5</td>
68 <td>Win 95+</td>
69 <td class="center">5.5</td>
70 <td class="center">A</td>
71 </tr>
72 <tr class="gradeA">
73 <td>Trident</td>
74 <td>Internet
75 Explorer 6</td>
76 <td>Win 98+</td>
77 <td class="center">6</td>
78 <td class="center">A</td>
79 </tr>
80 <tr class="gradeA">
81 <td>Trident</td>
82 <td>Internet Explorer 7</td>
83 <td>Win XP SP2+</td>
84 <td class="center">7</td>
85 <td class="center">A</td>
86 </tr>
87 <tr class="gradeA">
88 <td>Trident</td>
89 <td>AOL browser (AOL desktop)</td>
90 <td>Win XP</td>
91 <td class="center">6</td>
92 <td class="center">A</td>
93 </tr>
94 <tr class="gradeA">
95 <td>Gecko</td>
96 <td>Firefox 1.0</td>
97 <td>Win 98+ / OSX.2+</td>
98 <td class="center">1.7</td>
99 <td class="center">A</td>
100 </tr>
101 <tr class="gradeA">
102 <td>Gecko</td>
103 <td>Firefox 1.5</td>
104 <td>Win 98+ / OSX.2+</td>
105 <td class="center">1.8</td>
106 <td class="center">A</td>
107 </tr>
108 <tr class="gradeA">
109 <td>Gecko</td>
110 <td>Firefox 2.0</td>
111 <td>Win 98+ / OSX.2+</td>
112 <td class="center">1.8</td>
113 <td class="center">A</td>
114 </tr>
115 <tr class="gradeA">
116 <td>Gecko</td>
117 <td>Firefox 3.0</td>
118 <td>Win 2k+ / OSX.3+</td>
119 <td class="center">1.9</td>
120 <td class="center">A</td>
121 </tr>
122 <tr class="gradeA">
123 <td>Gecko</td>
124 <td>Camino 1.0</td>
125 <td>OSX.2+</td>
126 <td class="center">1.8</td>
127 <td class="center">A</td>
128 </tr>
129 <tr class="gradeA">
130 <td>Gecko</td>
131 <td>Camino 1.5</td>
132 <td>OSX.3+</td>
133 <td class="center">1.8</td>
134 <td class="center">A</td>
135 </tr>
136 <tr class="gradeA">
137 <td>Gecko</td>
138 <td>Netscape 7.2</td>
139 <td>Win 95+ / Mac OS 8.6-9.2</td>
140 <td class="center">1.7</td>
141 <td class="center">A</td>
142 </tr>
143 <tr class="gradeA">
144 <td>Gecko</td>
145 <td>Netscape Browser 8</td>
146 <td>Win 98SE+</td>
147 <td class="center">1.7</td>
148 <td class="center">A</td>
149 </tr>
150 <tr class="gradeA">
151 <td>Gecko</td>
152 <td>Netscape Navigator 9</td>
153 <td>Win 98+ / OSX.2+</td>
154 <td class="center">1.8</td>
155 <td class="center">A</td>
156 </tr>
157 <tr class="gradeA">
158 <td>Gecko</td>
159 <td>Mozilla 1.0</td>
160 <td>Win 95+ / OSX.1+</td>
161 <td class="center">1</td>
162 <td class="center">A</td>
163 </tr>
164 <tr class="gradeA">
165 <td>Gecko</td>
166 <td>Mozilla 1.1</td>
167 <td>Win 95+ / OSX.1+</td>
168 <td class="center">1.1</td>
169 <td class="center">A</td>
170 </tr>
171 <tr class="gradeA">
172 <td>Gecko</td>
173 <td>Mozilla 1.2</td>
174 <td>Win 95+ / OSX.1+</td>
175 <td class="center">1.2</td>
176 <td class="center">A</td>
177 </tr>
178 <tr class="gradeA">
179 <td>Gecko</td>
180 <td>Mozilla 1.3</td>
181 <td>Win 95+ / OSX.1+</td>
182 <td class="center">1.3</td>
183 <td class="center">A</td>
184 </tr>
185 <tr class="gradeA">
186 <td>Gecko</td>
187 <td>Mozilla 1.4</td>
188 <td>Win 95+ / OSX.1+</td>
189 <td class="center">1.4</td>
190 <td class="center">A</td>
191 </tr>
192 <tr class="gradeA">
193 <td>Gecko</td>
194 <td>Mozilla 1.5</td>
195 <td>Win 95+ / OSX.1+</td>
196 <td class="center">1.5</td>
197 <td class="center">A</td>
198 </tr>
199 <tr class="gradeA">
200 <td>Gecko</td>
201 <td>Mozilla 1.6</td>
202 <td>Win 95+ / OSX.1+</td>
203 <td class="center">1.6</td>
204 <td class="center">A</td>
205 </tr>
206 <tr class="gradeA">
207 <td>Gecko</td>
208 <td>Mozilla 1.7</td>
209 <td>Win 98+ / OSX.1+</td>
210 <td class="center">1.7</td>
211 <td class="center">A</td>
212 </tr>
213 <tr class="gradeA">
214 <td>Gecko</td>
215 <td>Mozilla 1.8</td>
216 <td>Win 98+ / OSX.1+</td>
217 <td class="center">1.8</td>
218 <td class="center">A</td>
219 </tr>
220 <tr class="gradeA">
221 <td>Gecko</td>
222 <td>Seamonkey 1.1</td>
223 <td>Win 98+ / OSX.2+</td>
224 <td class="center">1.8</td>
225 <td class="center">A</td>
226 </tr>
227 <tr class="gradeA">
228 <td>Gecko</td>
229 <td>Epiphany 2.20</td>
230 <td>Gnome</td>
231 <td class="center">1.8</td>
232 <td class="center">A</td>
233 </tr>
234 <tr class="gradeA">
235 <td>Webkit</td>
236 <td>Safari 1.2</td>
237 <td>OSX.3</td>
238 <td class="center">125.5</td>
239 <td class="center">A</td>
240 </tr>
241 <tr class="gradeA">
242 <td>Webkit</td>
243 <td>Safari 1.3</td>
244 <td>OSX.3</td>
245 <td class="center">312.8</td>
246 <td class="center">A</td>
247 </tr>
248 <tr class="gradeA">
249 <td>Webkit</td>
250 <td>Safari 2.0</td>
251 <td>OSX.4+</td>
252 <td class="center">419.3</td>
253 <td class="center">A</td>
254 </tr>
255 <tr class="gradeA">
256 <td>Webkit</td>
257 <td>Safari 3.0</td>
258 <td>OSX.4+</td>
259 <td class="center">522.1</td>
260 <td class="center">A</td>
261 </tr>
262 <tr class="gradeA">
263 <td>Webkit</td>
264 <td>OmniWeb 5.5</td>
265 <td>OSX.4+</td>
266 <td class="center">420</td>
267 <td class="center">A</td>
268 </tr>
269 <tr class="gradeA">
270 <td>Webkit</td>
271 <td>iPod Touch / iPhone</td>
272 <td>iPod</td>
273 <td class="center">420.1</td>
274 <td class="center">A</td>
275 </tr>
276 <tr class="gradeA">
277 <td>Webkit</td>
278 <td>S60</td>
279 <td>S60</td>
280 <td class="center">413</td>
281 <td class="center">A</td>
282 </tr>
283 <tr class="gradeA">
284 <td>Presto</td>
285 <td>Opera 7.0</td>
286 <td>Win 95+ / OSX.1+</td>
287 <td class="center">-</td>
288 <td class="center">A</td>
289 </tr>
290 <tr class="gradeA">
291 <td>Presto</td>
292 <td>Opera 7.5</td>
293 <td>Win 95+ / OSX.2+</td>
294 <td class="center">-</td>
295 <td class="center">A</td>
296 </tr>
297 <tr class="gradeA">
298 <td>Presto</td>
299 <td>Opera 8.0</td>
300 <td>Win 95+ / OSX.2+</td>
301 <td class="center">-</td>
302 <td class="center">A</td>
303 </tr>
304 <tr class="gradeA">
305 <td>Presto</td>
306 <td>Opera 8.5</td>
307 <td>Win 95+ / OSX.2+</td>
308 <td class="center">-</td>
309 <td class="center">A</td>
310 </tr>
311 <tr class="gradeA">
312 <td>Presto</td>
313 <td>Opera 9.0</td>
314 <td>Win 95+ / OSX.3+</td>
315 <td class="center">-</td>
316 <td class="center">A</td>
317 </tr>
318 <tr class="gradeA">
319 <td>Presto</td>
320 <td>Opera 9.2</td>
321 <td>Win 88+ / OSX.3+</td>
322 <td class="center">-</td>
323 <td class="center">A</td>
324 </tr>
325 <tr class="gradeA">
326 <td>Presto</td>
327 <td>Opera 9.5</td>
328 <td>Win 88+ / OSX.3+</td>
329 <td class="center">-</td>
330 <td class="center">A</td>
331 </tr>
332 <tr class="gradeA">
333 <td>Presto</td>
334 <td>Opera for Wii</td>
335 <td>Wii</td>
336 <td class="center">-</td>
337 <td class="center">A</td>
338 </tr>
339 <tr class="gradeA">
340 <td>Presto</td>
341 <td>Nokia N800</td>
342 <td>N800</td>
343 <td class="center">-</td>
344 <td class="center">A</td>
345 </tr>
346 <tr class="gradeA">
347 <td>Presto</td>
348 <td>Nintendo DS browser</td>
349 <td>Nintendo DS</td>
350 <td class="center">8.5</td>
351 <td class="center">C/A<sup>1</sup></td>
352 </tr>
353 <tr class="gradeC">
354 <td>KHTML</td>
355 <td>Konqureror 3.1</td>
356 <td>KDE 3.1</td>
357 <td class="center">3.1</td>
358 <td class="center">C</td>
359 </tr>
360 <tr class="gradeA">
361 <td>KHTML</td>
362 <td>Konqureror 3.3</td>
363 <td>KDE 3.3</td>
364 <td class="center">3.3</td>
365 <td class="center">A</td>
366 </tr>
367 <tr class="gradeA">
368 <td>KHTML</td>
369 <td>Konqureror 3.5</td>
370 <td>KDE 3.5</td>
371 <td class="center">3.5</td>
372 <td class="center">A</td>
373 </tr>
374 <tr class="gradeX">
375 <td>Tasman</td>
376 <td>Internet Explorer 4.5</td>
377 <td>Mac OS 8-9</td>
378 <td class="center">-</td>
379 <td class="center">X</td>
380 </tr>
381 <tr class="gradeC">
382 <td>Tasman</td>
383 <td>Internet Explorer 5.1</td>
384 <td>Mac OS 7.6-9</td>
385 <td class="center">1</td>
386 <td class="center">C</td>
387 </tr>
388 <tr class="gradeC">
389 <td>Tasman</td>
390 <td>Internet Explorer 5.2</td>
391 <td>Mac OS 8-X</td>
392 <td class="center">1</td>
393 <td class="center">C</td>
394 </tr>
395 <tr class="gradeA">
396 <td>Misc</td>
397 <td>NetFront 3.1</td>
398 <td>Embedded devices</td>
399 <td class="center">-</td>
400 <td class="center">C</td>
401 </tr>
402 <tr class="gradeA">
403 <td>Misc</td>
404 <td>NetFront 3.4</td>
405 <td>Embedded devices</td>
406 <td class="center">-</td>
407 <td class="center">A</td>
408 </tr>
409 <tr class="gradeX">
410 <td>Misc</td>
411 <td>Dillo 0.8</td>
412 <td>Embedded devices</td>
413 <td class="center">-</td>
414 <td class="center">X</td>
415 </tr>
416 <tr class="gradeX">
417 <td>Misc</td>
418 <td>Links</td>
419 <td>Text only</td>
420 <td class="center">-</td>
421 <td class="center">X</td>
422 </tr>
423 <tr class="gradeX">
424 <td>Misc</td>
425 <td>Lynx</td>
426 <td>Text only</td>
427 <td class="center">-</td>
428 <td class="center">X</td>
429 </tr>
430 <tr class="gradeC">
431 <td>Misc</td>
432 <td>IE Mobile</td>
433 <td>Windows Mobile 6</td>
434 <td class="center">-</td>
435 <td class="center">C</td>
436 </tr>
437 <tr class="gradeC">
438 <td>Misc</td>
439 <td>PSP browser</td>
440 <td>PSP</td>
441 <td class="center">-</td>
442 <td class="center">C</td>
443 </tr>
444 <tr class="gradeU">
445 <td>Other browsers</td>
446 <td>All others</td>
447 <td>-</td>
448 <td class="center">-</td>
449 <td class="center">U</td>
450 </tr>
451 </tbody>
452 <tfoot>
453 <tr>
454 <th>Rendering engine</th>
455 <th>Browser</th>
456 <th>Platform(s)</th>
457 <th>Engine version</th>
458 <th>CSS grade</th>
459 </tr>
460 </tfoot>
461 </table>
462 </div>
463 <div class="spacer"></div>
464
465
466 <h1>Initialisation code</h1>
467 <pre>$(document).ready( function () {
468 var oTable = $('#example').dataTable();
469
470 var keys = new KeyTable( {
471 "table": document.getElementById('example'),
472 "datatable": oTable
473 } );
474 } );</pre>
475
476
477 <h1>Other examples</h1>
478 <ul>
479 <li><a href="index.html">Basic usage</a></li>
480 <li><a href="editing.html">Editing a table</a></li>
481 <li><a href="form.html">Integration with an HTML form</a></li>
482 <li><a href="datatable.html">Integration with DataTables</a></li>
483 <li><a href="datatable_scrolling.html">Using KeyTable with scrolling in DataTables</a></li>
484 </ul>
485
486
487 <div id="footer" style="text-align:center;">
488 <span style="font-size:10px;">
489 KeyTable &copy; Allan Jardine 2009.<br>
490 Information in the table &copy; <a href="http://www.u4eatech.com">U4EA Technologies</a> 2007-2009.</span>
491 </div>
492 </div>
493 </body>
494 </html>