Skip to content

jareddlc/node-datatables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Node-DataTables

DataTables server-side script for Node.js

Requires:

npm install mysql@2.0.0-alpha8
npm install express

Setup:

Set the MySQL information (make sure to set sTable to the table you are querying)

var sTable = '';
var connection = mysql.createConnection({
  host     : '',
  user     : '',
  password : '', 
  database : '',
});

Run the script with Node.js, and initialize your DataTable with the ajax source as the location to the server.

oTable = $('#example').dataTable({
    "bServerSide": true,
    "sAjaxSource": "http://URL:8888/server",
  });

Info:

aColumns is set at launch with the function getColumnNames.

About

DataTables server-side script for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published