i got error: DataTables warning: table id=transactions_table - Ajax error. For more information about this error, please see http://datatables.net/tn/7
there is my js code:
var oTable = $('#transactions_table').DataTable({
"processing": true,
"serverSide": true,
"ajax": "/user/payments?type=datatable"
});
$('#transactions_table').dataTable().api();
new $.fn.dataTable.Api('#transactions_table');
Hi,
i got error: DataTables warning: table id=transactions_table - Ajax error. For more information about this error, please see http://datatables.net/tn/7
there is my js code:
var oTable = $('#transactions_table').DataTable({ "processing": true, "serverSide": true, "ajax": "/user/payments?type=datatable" }); $('#transactions_table').dataTable().api(); new $.fn.dataTable.Api('#transactions_table');
then i have html blade:
there is my controler:
public function getIndex() { if(Request::ajax()) { switch(Input::get('type')) {
please help my, where is my mistake
vardump $result return array:
array(2) { [0]=> object(stdClass)#803 (4) { ["id"]=> string(2) "44" ["type"]=> string(10) "creditcard" ["amount"]=> string(3) "100" ["created_at"]=> string(19) "2015-02-25 19:05:36" } [1]=> object(stdClass)#802 (4) { ["id"]=> string(2) "45" ["type"]=> string(6) "paypal" ["amount"]=> string(3) "100" ["created_at"]=> string(19) "2015-02-25 19:06:16" } }