var table;

$(document).ready(function() {
  table=$("#messageTable").DataTable( {
    "paging": true,
    "scrollX": true,
    "scrollY": false,
    "processing": true, 
    "serverSide": true, 
    "pageLength": 20, 
    "order":[], 
    "ajax":{
      "url": CI_ROOT+"message/getMessage", 
      "type": "POST"
    }, 
    "columnDefs":[ 
      {"targets":[0],"width":60},
      {"targets":[1],"width":100},
      {"targets":[2],"width":160},
      {"targets":[3],"width":160},
      {"targets":[4],"width":150},
      {"targets":[5],"width":150},
      {"targets":[6],"width":150},
      {"targets":[7],"width":300}
    ], 
    dom:"Bfrtip", 
    buttons:[]
  });
});