DataTables is AWESOME. I use it for list-based selection, table-based editing, data display and filtering and anything else I can think of because it is so robust that virtually anything is possible. Really.
If the dataset being used is fairly small (you may interpret small any way you like), DataTables client-side processing is amazing. It sorts and filters, updates all the navigation, lets you adjust the number of records displayed - as well as many more optional features - with very little effort.
Client-side processing - where filtering, paging and sorting calculations are all performed in the web-browser.
For client-side processing no additional data is submitted to the server
The goal was to have a single client-side datatable which would display different content based on the user's actions. For example, 'list all the items with a status of "new" and a (time) segment of 1'.
HTML for the DataTable
<table id="datatable" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Id</th> <th>Vendor</th> <th>Item</th> <th>Date</th> </tr> </thead> </table>
Notice that the URLs are variable. The status and segment values are passed in the URL itself, there is no POST or GET data.
Sample HTML which invokes the event handler. This HTML is inside the div with class="summary".
In order to extract the status and segment out of the URL, you can use Apache RewriteRules, like so:
status and segment can then be accessed as $_GET variables. Be sure to validate them.
How does it work? As the user clicks on the spans, the event handler reads the data attributes and constructs a URL that is sent to the server. When Apache receives the request, it rewrites it to deliver the data embedded in the URL as GET parameters.
This post courtesy of Game Creek Video