This repository was archived by the owner on Feb 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (92 loc) · 3.69 KB
/
index.html
File metadata and controls
123 lines (92 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!doctype html>
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" ><!--Prevent IE using compatibility mode on local or intranet pages. Do not put scripts before this line.-->
<meta name="viewport" content="initial-scale=1.0" ><!--Prevent iOS scaling-->
<meta charset="UTF-8">
<title>Tables - a jQuery data table plugin</title>
<!--load stylesheets first (rationale: https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts)-->
<link rel="stylesheet" href="require/framework.min.css" type="text/css" />
<link rel="stylesheet" href="tables.css" type="text/css" />
<style>
#banner {color: #385691; font-weight: bold; padding-top: 30px; background-color: #f7f7f7; border-bottom: 2px solid #385691; }
#banner img {padding: 25px 0 25px 0;}
</style>
<!--load scripts second-->
<script src="require/jquery.min.js"></script>
<script src="require/framework.min.js"></script>
<script src="tables.js"></script>
<script src="example.js"></script>
<!--inline scripts last-->
</head>
<body>
<header>
<div class="w-fixed-width">
<a href="./index.html">
<div style="background-image:url('require/logo.png');">
Tables - a jQuery data table plugin <span style="font-weight:normal;">(version x.x.x)</span>
</div>
</a>
<div>
</div>
</div>
</header>
<div id="banner"><div class="w-fixed-width">
<h1 class="w-massive w-center w-no-underline">Dynamic data tables for web applications.</h1>
<img class="w-center" src="require/overview.png" alt="overview" />
</div></div>
<section>
<div class="w-fixed-width">
<p class="colored" style="font-size:16px; text-align:center;"><strong>Tables</strong> is a <strong>jQuery plugin</strong> for dynamic HTML data tables on the client side.</p>
<p>The tables plugin is:</p>
<ul>
<li>Optimised for fast redrawing</li>
<li>Thin client, small footprint</li>
<li>Designed for large data sets: (configure, paginate and filter server-side)</li>
<li>Highly configurable (every column, row, and cell is configurable)</li>
</ul>
<h2>Features</h2>
<ul>
<li>Pagination</li>
<li>Forward / back buttons</li>
<li>Search filter</li>
<li>Row count</li>
<li>AJAX data loading in JSON format</a></li>
<li>Every cell is configurable</li>
</ul>
<h2>Reference demo</h2>
<p><strong>Tables</strong> requires a server backend for data access (in JSON format). The static example below shows a reference (example.json) which is included for learning.</p>
<div id="table"></div>
<h2>Getting started</h2>
<p>On the server side, use the reference demo (example.json and example.php) to understand the required data format. On the client side, set up as below:</p>
<strong>HTML</strong>
<p>Create a blank HTML page, attach <a href="tables.css">tables.css</a> and <a href="tables.js">tables.js</a>, and create a container div:</p>
<pre>
<code><div id="table"></div></code>
</pre>
<strong>JavaScript</strong>
<p>Create a config object, instantiate the table on the container div, and call the 'draw' method:</p>
<pre>
<code>$(document).ready(function() {
var options = {
'url' : 'data.json', //url to fetch row JSON
'queryCount' : 8, //how many rows to show per page
'enabled' : true, //only operates when enabled is true
'showIndex' : false //display an optional column showing the row index
}
$('#table').table(options);
$('#table').table('draw');
});</code>
</pre>
</div>
</section>
<footer>
<div><p class="w-fixed-width"> </p></div>
<div class="w-fixed-width">
<p>© 2014 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></p>
<p><a href="LICENSE">MIT license</a></p>
</div>
</footer>
</body>
</html>