Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/jQuery/jQueryPlugins/DataTables-1.7.6/examples/basic_init/zero_config.html @ 6286

Last change on this file since 6286 was 6286, checked in by dkahn, 13 years ago

#1198 Added jQuery plus plugins

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