comparison DataTables-1.9.4/examples/basic_init/scroll_xy.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.datatables.net/favicon.ico" />
6
7 <title>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" language="javascript" src="../../media/js/jquery.js"></script>
13 <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
14 <script type="text/javascript" charset="utf-8">
15 $(document).ready(function() {
16 $('#example').dataTable( {
17 "sScrollY": 200,
18 "sScrollX": "100%",
19 "sScrollXInner": "110%"
20 } );
21 } );
22 </script>
23 </head>
24 <body id="dt_example">
25 <div id="container">
26 <div class="full_width big">
27 DataTables horizontal and vertical scrolling example
28 </div>
29
30 <h1>Preamble</h1>
31 <p>In this example you can see DataTables doing horizontal and vertical scrolling at the same time. Note also that pagination is enabled, and the scrolling accounts for this.</p>
32
33 <h1>Live example</h1>
34 <div id="demo">
35
36 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
37 <thead>
38 <tr>
39 <th>Rendering engine</th>
40 <th>Browser</th>
41 <th>Platform(s)</th>
42 <th>Engine version</th>
43 <th>CSS grade</th>
44 </tr>
45 </thead>
46 <tbody>
47 <tr class="odd gradeX">
48 <td>Trident</td>
49 <td>Internet
50 Explorer 4.0</td>
51 <td>Win 95+</td>
52 <td class="center">4</td>
53 <td class="center">X</td>
54 </tr>
55 <tr class="odd gradeC">
56 <td>Trident</td>
57 <td>Internet
58 Explorer 5.0</td>
59 <td>Win 95+</td>
60 <td class="center">5</td>
61 <td class="center">C</td>
62 </tr>
63 <tr class="odd gradeA">
64 <td>Trident</td>
65 <td>Internet
66 Explorer 5.5</td>
67 <td>Win 95+</td>
68 <td class="center">5.5</td>
69 <td class="center">A</td>
70 </tr>
71 <tr class="odd gradeA">
72 <td>Trident</td>
73 <td>Internet
74 Explorer 6</td>
75 <td>Win 98+</td>
76 <td class="center">6</td>
77 <td class="center">A</td>
78 </tr>
79 <tr class="odd gradeA">
80 <td>Trident</td>
81 <td>Internet Explorer 7</td>
82 <td>Win XP SP2+</td>
83 <td class="center">7</td>
84 <td class="center">A</td>
85 </tr>
86 <tr class="odd gradeA">
87 <td>Trident</td>
88 <td>AOL browser (AOL desktop)</td>
89 <td>Win XP</td>
90 <td class="center">6</td>
91 <td class="center">A</td>
92 </tr>
93 <tr class="gradeA">
94 <td>Gecko</td>
95 <td>Firefox 1.0</td>
96 <td>Win 98+ / OSX.2+</td>
97 <td class="center">1.7</td>
98 <td class="center">A</td>
99 </tr>
100 <tr class="gradeA">
101 <td>Gecko</td>
102 <td>Firefox 1.5</td>
103 <td>Win 98+ / OSX.2+</td>
104 <td class="center">1.8</td>
105 <td class="center">A</td>
106 </tr>
107 <tr class="gradeA">
108 <td>Gecko</td>
109 <td>Firefox 2.0</td>
110 <td>Win 98+ / OSX.2+</td>
111 <td class="center">1.8</td>
112 <td class="center">A</td>
113 </tr>
114 <tr class="gradeA">
115 <td>Gecko</td>
116 <td>Firefox 3.0</td>
117 <td>Win 2k+ / OSX.3+</td>
118 <td class="center">1.9</td>
119 <td class="center">A</td>
120 </tr>
121 <tr class="gradeA">
122 <td>Gecko</td>
123 <td>Camino 1.0</td>
124 <td>OSX.2+</td>
125 <td class="center">1.8</td>
126 <td class="center">A</td>
127 </tr>
128 <tr class="gradeA">
129 <td>Gecko</td>
130 <td>Camino 1.5</td>
131 <td>OSX.3+</td>
132 <td class="center">1.8</td>
133 <td class="center">A</td>
134 </tr>
135 <tr class="gradeA">
136 <td>Gecko</td>
137 <td>Netscape 7.2</td>
138 <td>Win 95+ / Mac OS 8.6-9.2</td>
139 <td class="center">1.7</td>
140 <td class="center">A</td>
141 </tr>
142 <tr class="gradeA">
143 <td>Gecko</td>
144 <td>Netscape Browser 8</td>
145 <td>Win 98SE+</td>
146 <td class="center">1.7</td>
147 <td class="center">A</td>
148 </tr>
149 <tr class="gradeA">
150 <td>Gecko</td>
151 <td>Netscape Navigator 9</td>
152 <td>Win 98+ / OSX.2+</td>
153 <td class="center">1.8</td>
154 <td class="center">A</td>
155 </tr>
156 <tr class="gradeA">
157 <td>Gecko</td>
158 <td>Mozilla 1.0</td>
159 <td>Win 95+ / OSX.1+</td>
160 <td class="center">1</td>
161 <td class="center">A</td>
162 </tr>
163 <tr class="gradeA">
164 <td>Gecko</td>
165 <td>Mozilla 1.1</td>
166 <td>Win 95+ / OSX.1+</td>
167 <td class="center">1.1</td>
168 <td class="center">A</td>
169 </tr>
170 <tr class="gradeA">
171 <td>Gecko</td>
172 <td>Mozilla 1.2</td>
173 <td>Win 95+ / OSX.1+</td>
174 <td class="center">1.2</td>
175 <td class="center">A</td>
176 </tr>
177 <tr class="gradeA">
178 <td>Gecko</td>
179 <td>Mozilla 1.3</td>
180 <td>Win 95+ / OSX.1+</td>
181 <td class="center">1.3</td>
182 <td class="center">A</td>
183 </tr>
184 <tr class="gradeA">
185 <td>Gecko</td>
186 <td>Mozilla 1.4</td>
187 <td>Win 95+ / OSX.1+</td>
188 <td class="center">1.4</td>
189 <td class="center">A</td>
190 </tr>
191 <tr class="gradeA">
192 <td>Gecko</td>
193 <td>Mozilla 1.5</td>
194 <td>Win 95+ / OSX.1+</td>
195 <td class="center">1.5</td>
196 <td class="center">A</td>
197 </tr>
198 <tr class="gradeA">
199 <td>Gecko</td>
200 <td>Mozilla 1.6</td>
201 <td>Win 95+ / OSX.1+</td>
202 <td class="center">1.6</td>
203 <td class="center">A</td>
204 </tr>
205 <tr class="gradeA">
206 <td>Gecko</td>
207 <td>Mozilla 1.7</td>
208 <td>Win 98+ / OSX.1+</td>
209 <td class="center">1.7</td>
210 <td class="center">A</td>
211 </tr>
212 <tr class="gradeA">
213 <td>Gecko</td>
214 <td>Mozilla 1.8</td>
215 <td>Win 98+ / OSX.1+</td>
216 <td class="center">1.8</td>
217 <td class="center">A</td>
218 </tr>
219 <tr class="gradeA">
220 <td>Gecko</td>
221 <td>Seamonkey 1.1</td>
222 <td>Win 98+ / OSX.2+</td>
223 <td class="center">1.8</td>
224 <td class="center">A</td>
225 </tr>
226 <tr class="gradeA">
227 <td>Gecko</td>
228 <td>Epiphany 2.20</td>
229 <td>Gnome</td>
230 <td class="center">1.8</td>
231 <td class="center">A</td>
232 </tr>
233 <tr class="gradeA">
234 <td>Webkit</td>
235 <td>Safari 1.2</td>
236 <td>OSX.3</td>
237 <td class="center">125.5</td>
238 <td class="center">A</td>
239 </tr>
240 <tr class="gradeA">
241 <td>Webkit</td>
242 <td>Safari 1.3</td>
243 <td>OSX.3</td>
244 <td class="center">312.8</td>
245 <td class="center">A</td>
246 </tr>
247 <tr class="gradeA">
248 <td>Webkit</td>
249 <td>Safari 2.0</td>
250 <td>OSX.4+</td>
251 <td class="center">419.3</td>
252 <td class="center">A</td>
253 </tr>
254 <tr class="gradeA">
255 <td>Webkit</td>
256 <td>Safari 3.0</td>
257 <td>OSX.4+</td>
258 <td class="center">522.1</td>
259 <td class="center">A</td>
260 </tr>
261 <tr class="gradeA">
262 <td>Webkit</td>
263 <td>OmniWeb 5.5</td>
264 <td>OSX.4+</td>
265 <td class="center">420</td>
266 <td class="center">A</td>
267 </tr>
268 <tr class="gradeA">
269 <td>Webkit</td>
270 <td>iPod Touch / iPhone</td>
271 <td>iPod</td>
272 <td class="center">420.1</td>
273 <td class="center">A</td>
274 </tr>
275 <tr class="gradeA">
276 <td>Webkit</td>
277 <td>S60</td>
278 <td>S60</td>
279 <td class="center">413</td>
280 <td class="center">A</td>
281 </tr>
282 <tr class="gradeA">
283 <td>Presto</td>
284 <td>Opera 7.0</td>
285 <td>Win 95+ / OSX.1+</td>
286 <td class="center">-</td>
287 <td class="center">A</td>
288 </tr>
289 <tr class="gradeA">
290 <td>Presto</td>
291 <td>Opera 7.5</td>
292 <td>Win 95+ / OSX.2+</td>
293 <td class="center">-</td>
294 <td class="center">A</td>
295 </tr>
296 <tr class="gradeA">
297 <td>Presto</td>
298 <td>Opera 8.0</td>
299 <td>Win 95+ / OSX.2+</td>
300 <td class="center">-</td>
301 <td class="center">A</td>
302 </tr>
303 <tr class="gradeA">
304 <td>Presto</td>
305 <td>Opera 8.5</td>
306 <td>Win 95+ / OSX.2+</td>
307 <td class="center">-</td>
308 <td class="center">A</td>
309 </tr>
310 <tr class="gradeA">
311 <td>Presto</td>
312 <td>Opera 9.0</td>
313 <td>Win 95+ / OSX.3+</td>
314 <td class="center">-</td>
315 <td class="center">A</td>
316 </tr>
317 <tr class="gradeA">
318 <td>Presto</td>
319 <td>Opera 9.2</td>
320 <td>Win 88+ / OSX.3+</td>
321 <td class="center">-</td>
322 <td class="center">A</td>
323 </tr>
324 <tr class="gradeA">
325 <td>Presto</td>
326 <td>Opera 9.5</td>
327 <td>Win 88+ / OSX.3+</td>
328 <td class="center">-</td>
329 <td class="center">A</td>
330 </tr>
331 <tr class="gradeA">
332 <td>Presto</td>
333 <td>Opera for Wii</td>
334 <td>Wii</td>
335 <td class="center">-</td>
336 <td class="center">A</td>
337 </tr>
338 <tr class="gradeA">
339 <td>Presto</td>
340 <td>Nokia N800</td>
341 <td>N800</td>
342 <td class="center">-</td>
343 <td class="center">A</td>
344 </tr>
345 <tr class="gradeA">
346 <td>Presto</td>
347 <td>Nintendo DS browser</td>
348 <td>Nintendo DS</td>
349 <td class="center">8.5</td>
350 <td class="center">C/A<sup>1</sup></td>
351 </tr>
352 <tr class="gradeC">
353 <td>KHTML</td>
354 <td>Konqureror 3.1</td>
355 <td>KDE 3.1</td>
356 <td class="center">3.1</td>
357 <td class="center">C</td>
358 </tr>
359 <tr class="gradeA">
360 <td>KHTML</td>
361 <td>Konqureror 3.3</td>
362 <td>KDE 3.3</td>
363 <td class="center">3.3</td>
364 <td class="center">A</td>
365 </tr>
366 <tr class="gradeA">
367 <td>KHTML</td>
368 <td>Konqureror 3.5</td>
369 <td>KDE 3.5</td>
370 <td class="center">3.5</td>
371 <td class="center">A</td>
372 </tr>
373 <tr class="gradeX">
374 <td>Tasman</td>
375 <td>Internet Explorer 4.5</td>
376 <td>Mac OS 8-9</td>
377 <td class="center">-</td>
378 <td class="center">X</td>
379 </tr>
380 <tr class="gradeC">
381 <td>Tasman</td>
382 <td>Internet Explorer 5.1</td>
383 <td>Mac OS 7.6-9</td>
384 <td class="center">1</td>
385 <td class="center">C</td>
386 </tr>
387 <tr class="gradeC">
388 <td>Tasman</td>
389 <td>Internet Explorer 5.2</td>
390 <td>Mac OS 8-X</td>
391 <td class="center">1</td>
392 <td class="center">C</td>
393 </tr>
394 <tr class="gradeA">
395 <td>Misc</td>
396 <td>NetFront 3.1</td>
397 <td>Embedded devices</td>
398 <td class="center">-</td>
399 <td class="center">C</td>
400 </tr>
401 <tr class="gradeA">
402 <td>Misc</td>
403 <td>NetFront 3.4</td>
404 <td>Embedded devices</td>
405 <td class="center">-</td>
406 <td class="center">A</td>
407 </tr>
408 <tr class="gradeX">
409 <td>Misc</td>
410 <td>Dillo 0.8</td>
411 <td>Embedded devices</td>
412 <td class="center">-</td>
413 <td class="center">X</td>
414 </tr>
415 <tr class="gradeX">
416 <td>Misc</td>
417 <td>Links</td>
418 <td>Text only</td>
419 <td class="center">-</td>
420 <td class="center">X</td>
421 </tr>
422 <tr class="gradeX">
423 <td>Misc</td>
424 <td>Lynx</td>
425 <td>Text only</td>
426 <td class="center">-</td>
427 <td class="center">X</td>
428 </tr>
429 <tr class="gradeC">
430 <td>Misc</td>
431 <td>IE Mobile</td>
432 <td>Windows Mobile 6</td>
433 <td class="center">-</td>
434 <td class="center">C</td>
435 </tr>
436 <tr class="gradeC">
437 <td>Misc</td>
438 <td>PSP browser</td>
439 <td>PSP</td>
440 <td class="center">-</td>
441 <td class="center">C</td>
442 </tr>
443 <tr class="gradeU">
444 <td>Other browsers</td>
445 <td>All others</td>
446 <td>-</td>
447 <td class="center">-</td>
448 <td class="center">U</td>
449 </tr>
450 </tbody>
451 </table>
452 </div>
453 <div class="spacer"></div>
454
455
456 <h1>Initialisation code</h1>
457 <pre class="brush: js;">$(document).ready(function() {
458 $('#example').dataTable( {
459 "sScrollY": 200,
460 "sScrollX": "100%",
461 "sScrollXInner": "110%"
462 } );
463 } );</pre>
464 <style type="text/css">
465 @import "../examples_support/syntax/css/shCore.css";
466 </style>
467 <script type="text/javascript" language="javascript" src="../examples_support/syntax/js/shCore.js"></script>
468
469
470 <h1>Other examples</h1>
471 <div class="demo_links">
472 <h2>Basic initialisation</h2>
473 <ul>
474 <li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
475 <li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
476 <li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
477 <li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
478 <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
479 <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
480 <li><a href="../basic_init/complex_header.html">Complex headers - grouping with colspan</a></li>
481 <li><a href="../basic_init/dom.html">DOM positioning</a></li>
482 <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li>
483 <li><a href="../basic_init/state_save.html">State saving</a></li>
484 <li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
485 <li>Scrolling: <br>
486 <a href="../basic_init/scroll_x.html">Horizontal</a> /
487 <a href="../basic_init/scroll_y.html">Vertical</a> /
488 <a href="../basic_init/scroll_xy.html">Both</a> /
489 <a href="../basic_init/scroll_y_theme.html">Themed</a> /
490 <a href="../basic_init/scroll_y_infinite.html">Infinite</a>
491 </li>
492 <li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
493 <li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
494 </ul>
495
496 <h2>Advanced initialisation</h2>
497 <ul>
498 <li>Events: <br>
499 <a href="../advanced_init/events_live.html">Live events</a> /
500 <a href="../advanced_init/events_pre_init.html">Pre-init</a> /
501 <a href="../advanced_init/events_post_init.html">Post-init</a>
502 </li>
503 <li><a href="../advanced_init/column_render.html">Column rendering</a></li>
504 <li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
505 <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
506 <li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
507 <li><a href="../advanced_init/complex_header.html">Complex headers and hidden columns</a></li>
508 <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
509 <li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
510 <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
511 <li><a href="../advanced_init/row_callback.html">Row callback</a></li>
512 <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
513 <li><a href="../advanced_init/sorting_control.html">Control sorting direction of columns</a></li>
514 <li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
515 <li><a href="../advanced_init/defaults.html">Setting defaults</a></li>
516 <li><a href="../advanced_init/localstorage.html">State saving with localStorage</a></li>
517 <li><a href="../advanced_init/dt_events.html">Custom events</a></li>
518 </ul>
519
520 <h2>API</h2>
521 <ul>
522 <li><a href="../api/add_row.html">Dynamically add a new row</a></li>
523 <li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
524 <li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
525 <li><a href="../api/highlight.html">Highlight rows and columns</a></li>
526 <li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
527 <li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
528 <li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
529 <li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
530 <li><a href="../api/form.html">Submit form with elements in table</a></li>
531 <li><a href="../api/counter_column.html">Index column (static number column)</a></li>
532 <li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
533 <li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
534 <li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
535 <li><a href="../api/regex.html">Regular expression filtering</a></li>
536 </ul>
537 </div>
538
539 <div class="demo_links">
540 <h2>Data sources</h2>
541 <ul>
542 <li><a href="../data_sources/dom.html">DOM</a></li>
543 <li><a href="../data_sources/js_array.html">Javascript array</a></li>
544 <li><a href="../data_sources/ajax.html">Ajax source</a></li>
545 <li><a href="../data_sources/server_side.html">Server side processing</a></li>
546 </ul>
547
548 <h2>Server-side processing</h2>
549 <ul>
550 <li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
551 <li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
552 <li><a href="../server_side/post.html">Use HTTP POST</a></li>
553 <li><a href="../server_side/ids.html">Automatic addition of IDs and classes to rows</a></li>
554 <li><a href="../server_side/object_data.html">Reading table data from objects</a></li>
555 <li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
556 <li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
557 <li><a href="../server_side/jsonp.html">JSONP for a cross domain data source</a></li>
558 <li><a href="../server_side/editable.html">jEditable integration with DataTables</a></li>
559 <li><a href="../server_side/defer_loading.html">Deferred loading of Ajax data</a></li>
560 <li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
561 </ul>
562
563 <h2>Ajax data source</h2>
564 <ul>
565 <li><a href="../ajax/ajax.html">Ajax sourced data (array of arrays)</a></li>
566 <li><a href="../ajax/objects.html">Ajax sourced data (array of objects)</a></li>
567 <li><a href="../ajax/defer_render.html">Deferred DOM creation for extra speed</a></li>
568 <li><a href="../ajax/null_data_source.html">Empty data source columns</a></li>
569 <li><a href="../ajax/custom_data_property.html">Use a data source other than aaData (the default)</a></li>
570 <li><a href="../ajax/objects_subarrays.html">Read column data from sub-arrays</a></li>
571 <li><a href="../ajax/deep.html">Read column data from deeply nested properties</a></li>
572 </ul>
573
574 <h2>Plug-ins</h2>
575 <ul>
576 <li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
577 <li><a href="../plug-ins/sorting_plugin.html">Sorting and automatic type detection</a></li>
578 <li><a href="../plug-ins/sorting_sType.html">Sorting without automatic type detection</a></li>
579 <li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
580 <li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
581 <li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
582 <li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
583 </ul>
584 </div>
585
586
587 <div id="footer" class="clear" style="text-align:center;">
588 <p>
589 Please refer to the <a href="http://www.datatables.net/usage">DataTables documentation</a> for full information about its API properties and methods.<br>
590 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> which extend the capabilities of DataTables.
591 </p>
592
593 <span style="font-size:10px;">
594 DataTables designed and created by <a href="http://www.sprymedia.co.uk">Allan Jardine</a> &copy; 2007-2011<br>
595 DataTables is dual licensed under the <a href="http://www.datatables.net/license_gpl2">GPL v2 license</a> or a <a href="http://www.datatables.net/license_bsd">BSD (3-point) license</a>.
596 </span>
597 </div>
598 </div>
599 </body>
600 </html>