var options = {
// "sScrollY": "450px",
"sScrollY": "23px",
// "sScrollX": "",
"bInfo": true, // show display summary
"bAutowidth": false,
"bPaginate": false,
"bProcessing": true, // Show 'processing' box during load
"sAjaxSource": '/my_controller.js',
"sDom": 'iflrtp<"clear">', // i=info, f=filter l=length r= t=table p=pagination
"aoColumnDefs": [
{ "sWidth": "30%", "aTargets": [ 0 ] }
],
// "aoColumns": [ { "sWidth": "650px" }, null ],
// Get the table data
j.getJSON( sSource, aoData, function (json) {
// Fill the table with received data
fnCallback(json);
});
},
};
oTable = j('#my_data_table').dataTable( options );
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.