Skip to content

Instantly share code, notes, and snippets.

@zeromancer1972
Created January 4, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeromancer1972/1b2ac14468e333289da2 to your computer and use it in GitHub Desktop.
Save zeromancer1972/1b2ac14468e333289da2 to your computer and use it in GitHub Desktop.
// DataTables init
$(document).ready( function() {
var table = $("#datatable").dataTable( {
"language" : {
"lengthMenu" : "Records per page _MENU_",
"zeroRecords" : "Nothing found - sorry",
"info" : "Page _PAGE_ of _PAGES_",
"infoEmpty" : "No records available",
"infoFiltered" : ""
},
scrollY : 400,
"ajax" : "data.xsp",
"columns" : [ {
"data" : "lastname"
}, {
"data" : "firstname"
}, {
"data" : "address"
}, {
"data" : "zip"
}, {
"data" : "city"
}, {
"data" : "country"
} ]
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment