Merge branch 'master' into PROT-9-webservice
[proteocache.git] / webapp / resources / datatables-1.9.4 / extras / Scroller / index.html
diff --git a/webapp/resources/datatables-1.9.4/extras/Scroller/index.html b/webapp/resources/datatables-1.9.4/extras/Scroller/index.html
new file mode 100644 (file)
index 0000000..b20848e
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+       <head>
+               <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+               <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico" />
+               
+               <title>DataTables example</title>
+               <style type="text/css">
+                       @import "../../media/css/demo_page.css";
+                       @import "../../media/css/demo_table.css";
+                       @import "media/css/dataTables.scroller.css";
+               </style>
+               <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
+               <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
+               <script type="text/javascript" language="javascript" src="media/js/dataTables.scroller.js"></script>
+               <script type="text/javascript" charset="utf-8">
+                       $(document).ready(function() {
+                               var oTable = $('#example').dataTable( {
+                                       "sScrollY": "192px",
+                                       "sAjaxSource": "media/data/2500.txt",
+                                       "sDom": "frtiS",
+                                       "bDeferRender": true
+                               } );
+                       } );
+               </script>
+       </head>
+       <body id="dt_example">
+               <div id="container" style="width:980px">
+                       <div class="full_width big">
+                               Scroller basic initialisation example
+                       </div>
+                       
+                       <h1>Preamble</h1>
+                       <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>
+                       <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>
+                       <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>
+                       
+                       <h1>Live example</h1>
+                       <div id="demo">
+<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
+       <thead>
+               <tr>
+                       <th>ID</th>
+                       <th>First name</th>
+                       <th>Last name</th>
+                       <th>ZIP</th>
+                       <th width="33%">Country</th>
+               </tr>
+       </thead>
+</table>
+                       </div>
+                       <div class="spacer"></div>
+                       
+                       
+                       <h1>Initialisation code</h1>
+                       <pre>$(document).ready(function() {
+       var oTable = $('#example').dataTable( {
+               "sScrollY": "200px",
+               "sAjaxSource": "media/data/2500.txt",
+               "sDom": "frtiS",
+               "bDeferRender": true
+       } );
+} );</pre>
+                       
+                       
+                       <h1>Other examples</h1>
+                       <div class="demo_links">
+                               <ul>
+                                       <li><a href="index.html">Basic initialisation of Scroller</a></li>
+                                       <li><a href="state_saving.html">State saving</a></li>
+                                       <li><a href="api_scrolling.html">API - pragmatically move to a row</a></li>
+                                       <li><a href="server-side_processing.html">Server-side processing with Scroller</a></li>
+                                       <li><a href="large_js_source.html">50'000 rows in a table - client-side generated data</a></li>
+                               </ul>
+                       </div>
+                       
+               </div>
+       </body>
+</html>
\ No newline at end of file