I look at the datatables.net website for some clarification or documentation, and not what to do if you have more than one table on one page and you want to handle each differently.
I tried the obvious. Assigning each other an identifier, and then executing the code for each of my js, but for some reason does not allow it. I do not receive an error message, but the datatables itself breaks and does nothing.
$(document).ready(function() { var oTable = $('#inbox').dataTable( { "bAutoWidth": false, "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0, -1 ] }, { "sWidth": "20px", "aTargets": [ 0, -1 ] }, { "sWidth": "100px", "aTargets": [ 1 ] }, { "sWidth": "150px", "aTargets": [ 3 ] } ] } ); var oTable = $('#sent').dataTable( { "bAutoWidth": false, "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0, -1 ] }, { "sWidth": "20px", "aTargets": [ 0, -1 ] }, { "sWidth": "100px", "aTargets": [ 1 ] }, { "sWidth": "150px", "aTargets": [ 3 ] } ] } ); });
UPDATE
http://pastebin.com/4d3kPmk0
$(document).ready(function() { var oTable = $('.dataTable').dataTable( { "bAutoWidth": false, "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0, -1 ] }, { "sWidth": "20px", "aTargets": [ 0, -1 ] }, { "sWidth": "100px", "aTargets": [ 1 ] }, { "sWidth": "150px", "aTargets": [ 3 ] } ] } ); }); $(window).load(function(){ $('#tab-panel-1').createTabs(); });