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