Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nextPage;
- $(document).ready(function() {
- $('#table').DataTable( {
- "processing": true,
- "ordering": false,
- "serverSide": true,
- "sorting":false,
- "paging": true,
- "pageLength":20,
- "lengthChange" :false,
- "pagingType":"simple",
- "ajax": function (data, callback, settings) {
- data.nextPage=document.getElementById("nextPage").value
- $.ajax({url: "get/list", data: data, success: function(result){
- document.getElementById("nextPage").value=result.nextPage;
- callback(result);
- }});
- },
- "columns": [
- { "data": "first_name" },
- { "data": "title" },
- { "data": "first_name" },
- { "data": "first_name" },
- { "data": "first_name" },
- { "data": "first_name" },
- { "data": "work_email" }
- ]
- });
- });
Add Comment
Please, Sign In to add comment