Tables - a jQuery data table plugin (version 1.0.1)

Tables is a jQuery plugin for dynamic HTML data tables on the client side.

The tables plugin is:

Features

Reference demo

Tables requires a server backend for data access (in JSON format). The static example below shows a reference (example.json) which is included for learning.

Getting started

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:

HTML

Create a blank HTML page, attach tables.css and tables.js, and create a container div:

<div id="table"></div>
JavaScript

Create a config object, instantiate the table on the container div, and call the 'draw' method:

$(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');
});