Add datatables-1.9.4 and jquery-1.10.2 libraries
[proteocache.git] / webapp / resources / datatables-1.9.4 / extras / Scroller / index.html
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">
9                         @import "../../media/css/demo_page.css";
10                         @import "../../media/css/demo_table.css";
11                         @import "media/css/dataTables.scroller.css";
12                 </style>
13                 <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
14                 <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
15                 <script type="text/javascript" language="javascript" src="media/js/dataTables.scroller.js"></script>
16                 <script type="text/javascript" charset="utf-8">
17                         $(document).ready(function() {
18                                 var oTable = $('#example').dataTable( {
19                                         "sScrollY": "192px",
20                                         "sAjaxSource": "media/data/2500.txt",
21                                         "sDom": "frtiS",
22                                         "bDeferRender": true
23                                 } );
24                         } );
25                 </script>
26         </head>
27         <body id="dt_example">
28                 <div id="container" style="width:980px">
29                         <div class="full_width big">
30                                 Scroller basic initialisation example
31                         </div>
32                         
33                         <h1>Preamble</h1>
34                         <p>Scroller is a plug-in for DataTables which enhances the "infinite scrolling" feature that DataTables has built-in to make the scrolling feel more natural. The scrolling box shown on the page is the full height of the drawn table, but a virtual rendering technique is used to only render the part of the table that is actually viewable in the scrolling viewport in order to increase the speed of drawing.</p>
35                         <p>Note that Scroller assumes that all rows are of the same height (in order to preform the required calculations. You can use 'td { white-space: nowrap; }' in your CSS to ensure that text in rows does not wrap.</p>
36                         <p>This example shows how Scroller for DataTables can be initialised by simply including the character 'S' in sDom (note that the 'S' must come after the 't' in sDom). Deferred rendering an and Ajax data source are also used in this example.</p>
37                         
38                         <h1>Live example</h1>
39                         <div id="demo">
40 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
41         <thead>
42                 <tr>
43                         <th>ID</th>
44                         <th>First name</th>
45                         <th>Last name</th>
46                         <th>ZIP</th>
47                         <th width="33%">Country</th>
48                 </tr>
49         </thead>
50 </table>
51                         </div>
52                         <div class="spacer"></div>
53                         
54                         
55                         <h1>Initialisation code</h1>
56                         <pre>$(document).ready(function() {
57         var oTable = $('#example').dataTable( {
58                 "sScrollY": "200px",
59                 "sAjaxSource": "media/data/2500.txt",
60                 "sDom": "frtiS",
61                 "bDeferRender": true
62         } );
63 } );</pre>
64                         
65                         
66                         <h1>Other examples</h1>
67                         <div class="demo_links">
68                                 <ul>
69                                         <li><a href="index.html">Basic initialisation of Scroller</a></li>
70                                         <li><a href="state_saving.html">State saving</a></li>
71                                         <li><a href="api_scrolling.html">API - pragmatically move to a row</a></li>
72                                         <li><a href="server-side_processing.html">Server-side processing with Scroller</a></li>
73                                         <li><a href="large_js_source.html">50'000 rows in a table - client-side generated data</a></li>
74                                 </ul>
75                         </div>
76                         
77                 </div>
78         </body>
79 </html>