comparison DataTables-1.9.4/extras/TableTools/multiple_tables.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>TableTools example</title>
8 <style type="text/css" title="currentStyle">
9 @import "../../media/css/demo_page.css";
10 @import "../../media/css/demo_table.css";
11 @import "media/css/TableTools.css";
12 </style>
13 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.js"></script>
14 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.dataTables.js"></script>
15 <script type="text/javascript" charset="utf-8" src="media/js/ZeroClipboard.js"></script>
16 <script type="text/javascript" charset="utf-8" src="media/js/TableTools.js"></script>
17 <script type="text/javascript" charset="utf-8">
18 $(document).ready( function () {
19 $('table.display').dataTable( {
20 "sDom": 'T<"clear">lfrtip'
21 } );
22 } );
23 </script>
24 </head>
25 <body id="dt_example">
26 <div id="container">
27 <div class="full_width big">
28 TableTools example - multiple tables
29 </div>
30
31 <h1>Preamble</h1>
32 <p>This example shows how multiple tables can be initialised with DataTables and TableTools in a single call to the $().dataTable() function. Basically it works as you would expect - no special considerations need be made!</p>
33
34 <h1>Live example</h1>
35 <div id="demo">
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 Explorer 4.0</td>
50 <td>Win 95+ (Entity: &amp;)</td>
51 <td class="center">4</td>
52 <td class="center">X</td>
53 </tr>
54 <tr class="even_gradeC">
55 <td>Trident</td>
56 <td>Internet Explorer 5.0</td>
57 <td>Win 95+</td>
58 <td class="center">5</td>
59 <td class="center">C</td>
60 </tr>
61 <tr class="odd_gradeA">
62 <td>Trident</td>
63 <td>Internet Explorer 5.5</td>
64 <td>Win 95+</td>
65 <td class="center">5.5</td>
66 <td class="center">A</td>
67 </tr>
68 <tr class="even_gradeA">
69 <td>Trident</td>
70 <td>Internet Explorer 6</td>
71 <td>Win 98+</td>
72 <td class="center">6</td>
73 <td class="center">A</td>
74 </tr>
75 <tr class="odd_gradeA">
76 <td>Trident</td>
77 <td>Internet Explorer 7</td>
78 <td>Win XP SP2+</td>
79 <td class="center">7</td>
80 <td class="center">A</td>
81 </tr>
82 <tr class="even_gradeA">
83 <td>Trident</td>
84 <td>AOL browser (AOL desktop)</td>
85 <td>Win XP</td>
86 <td class="center">6</td>
87 <td class="center">A</td>
88 </tr>
89 </tbody>
90 </table>
91
92
93 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example2">
94 <thead>
95 <tr>
96 <th>Rendering engine</th>
97 <th>Browser</th>
98 <th>Platform(s)</th>
99 <th>Engine version</th>
100 <th>CSS grade</th>
101 </tr>
102 </thead>
103 <tfoot>
104 <tr>
105 <th>Rendering engine</th>
106 <th>Browser</th>
107 <th>Platform(s)</th>
108 <th>Engine version</th>
109 <th>CSS grade</th>
110 </tr>
111 </tfoot>
112 <tbody>
113 <tr class="odd_gradeA">
114 <td>Gecko (UTF-8: $¢€)</td>
115 <td>Firefox 1.0</td>
116 <td>Win 98+ / OSX.2+</td>
117 <td class="center">1.7</td>
118 <td class="center">A</td>
119 </tr>
120 <tr class="even_gradeA">
121 <td>Gecko</td>
122 <td>Firefox 1.5</td>
123 <td>Win 98+ / OSX.2+</td>
124 <td class="center">1.8</td>
125 <td class="center">A</td>
126 </tr>
127 <tr class="odd_gradeA">
128 <td>Gecko</td>
129 <td>Firefox 2.0</td>
130 <td>Win 98+ / OSX.2+</td>
131 <td class="center">1.8</td>
132 <td class="center">A</td>
133 </tr>
134 <tr class="even_gradeA">
135 <td>Gecko</td>
136 <td>Firefox 3.0</td>
137 <td>Win 2k+ / OSX.3+</td>
138 <td class="center">1.9</td>
139 <td class="center">A</td>
140 </tr>
141 <tr class="odd_gradeA">
142 <td>Gecko</td>
143 <td>Camino 1.0</td>
144 <td>OSX.2+</td>
145 <td class="center">1.8</td>
146 <td class="center">A</td>
147 </tr>
148 <tr class="even_gradeA">
149 <td>Gecko</td>
150 <td>Camino 1.5</td>
151 <td>OSX.3+</td>
152 <td class="center">1.8</td>
153 <td class="center">A</td>
154 </tr>
155 <tr class="odd_gradeA">
156 <td>Gecko</td>
157 <td>Netscape 7.2</td>
158 <td>Win 95+ / Mac OS 8.6-9.2</td>
159 <td class="center">1.7</td>
160 <td class="center">A</td>
161 </tr>
162 <tr class="even_gradeA">
163 <td>Gecko</td>
164 <td>Netscape Browser 8</td>
165 <td>Win 98SE+</td>
166 <td class="center">1.7</td>
167 <td class="center">A</td>
168 </tr>
169 <tr class="odd_gradeA">
170 <td>Gecko</td>
171 <td>Netscape Navigator 9</td>
172 <td>Win 98+ / OSX.2+</td>
173 <td class="center">1.8</td>
174 <td class="center">A</td>
175 </tr>
176 <tr class="even_gradeA">
177 <td>Gecko</td>
178 <td>Mozilla 1.0</td>
179 <td>Win 95+ / OSX.1+</td>
180 <td class="center">1</td>
181 <td class="center">A</td>
182 </tr>
183 <tr class="odd_gradeA">
184 <td>Gecko</td>
185 <td>Mozilla 1.1</td>
186 <td>Win 95+ / OSX.1+</td>
187 <td class="center">1.1</td>
188 <td class="center">A</td>
189 </tr>
190 <tr class="even_gradeA">
191 <td>Gecko</td>
192 <td>Mozilla 1.2</td>
193 <td>Win 95+ / OSX.1+</td>
194 <td class="center">1.2</td>
195 <td class="center">A</td>
196 </tr>
197 <tr class="odd_gradeA">
198 <td>Gecko</td>
199 <td>Mozilla 1.3</td>
200 <td>Win 95+ / OSX.1+</td>
201 <td class="center">1.3</td>
202 <td class="center">A</td>
203 </tr>
204 <tr class="even_gradeA">
205 <td>Gecko</td>
206 <td>Mozilla 1.4</td>
207 <td>Win 95+ / OSX.1+</td>
208 <td class="center">1.4</td>
209 <td class="center">A</td>
210 </tr>
211 <tr class="odd_gradeA">
212 <td>Gecko</td>
213 <td>Mozilla 1.5</td>
214 <td>Win 95+ / OSX.1+</td>
215 <td class="center">1.5</td>
216 <td class="center">A</td>
217 </tr>
218 <tr class="even_gradeA">
219 <td>Gecko</td>
220 <td>Mozilla 1.6</td>
221 <td>Win 95+ / OSX.1+</td>
222 <td class="center">1.6</td>
223 <td class="center">A</td>
224 </tr>
225 <tr class="odd_gradeA">
226 <td>Gecko</td>
227 <td>Mozilla 1.7</td>
228 <td>Win 98+ / OSX.1+</td>
229 <td class="center">1.7</td>
230 <td class="center">A</td>
231 </tr>
232 <tr class="even_gradeA">
233 <td>Gecko</td>
234 <td>Mozilla 1.8</td>
235 <td>Win 98+ / OSX.1+</td>
236 <td class="center">1.8</td>
237 <td class="center">A</td>
238 </tr>
239 <tr class="odd_gradeA">
240 <td>Gecko</td>
241 <td>Seamonkey 1.1</td>
242 <td>Win 98+ / OSX.2+</td>
243 <td class="center">1.8</td>
244 <td class="center">A</td>
245 </tr>
246 <tr class="even_gradeA">
247 <td>Gecko</td>
248 <td>Epiphany 2.20</td>
249 <td>Gnome</td>
250 <td class="center">1.8</td>
251 <td class="center">A</td>
252 </tr>
253 </tbody>
254 </table>
255 </div>
256 <div class="spacer"></div>
257
258
259 <h1>Initialisation code</h1>
260 <pre>$(document).ready( function () {
261 $('#example').dataTable( {
262 "sDom": 'T&lt;"clear"&gt;lfrtip'
263 } );
264 } );</pre>
265
266
267 <h1>Other examples</h1>
268 <ul>
269 <li><a href="index.html">Basic initialisation</a></li>
270 <li><a href="swf_path.html">Setting the SWF path</a></li>
271 <li><a href="alter_buttons.html">Custom button arrangement</a></li>
272 <li><a href="button_text.html">Button text alteration</a></li>
273 <li><a href="collection.html">Using button collections</a></li>
274 <li><a href="theme.html">Using jQuery UI themes</a></li>
275 <li><a href="bootstrap.html">Styling with Twitter Bootstrap</a></li>
276 <li><a href="multi_instance.html">Multiple TableTools toolbars for a single table</a></li>
277 <li><a href="multiple_tables.html">Multiple DataTables with a single initialisation</a></li>
278 <li><a href="select_multi.html">User selectable rows (multiple rows)</a></li>
279 <li><a href="select_single.html">User selectable rows (single row)</a></li>
280 <li><a href="alt_init.html">Alternative initialisation using 'new TableTools()'</a></li>
281 <li><a href="defaults.html">Altering the TableTools defaults</a></li>
282 <li><a href="plug-in.html">TableTools plug-in buttons</a></li>
283 <li><a href="pdf_message.html">Customising the PDF output (adding text and orientation)</a></li>
284 </ul>
285
286
287 <div id="footer" style="text-align:center;">
288 <span style="font-size:10px;">
289 TableTools and DataTables &copy; Allan Jardine 2009-2011.<br>
290 Flash 10 save / copy operations are performed by a modified version of <a href="http://code.google.com/p/zeroclipboard/">Zero Clipboard</a>.<br>
291 The icons used in the toolbar are modified from <a href="http://www.addictedtocoffee.de/">Oliver Twardowski's</a> <a href="http://www.smashingmagazine.com/2009/05/20/flavour-extended-the-ultimate-icon-set-for-web-designers/">Flavours Icon set</a>.
292 </span>
293 </div>
294 </div>
295 </body>
296 </html>