I am using datatables with Codeigniter library (https://github[dot]com/IgnitedDatatables) and I have several problems.
Problem @firebug:
"NetworkError: 500 Internal Server Error - http://www[dot]rodocomp[dot]si/shopmanager/server/datatables?callback=jQuery152008148431712533122_1302880482637"
I assume that error is because of ?callback=jQuery152008148431712533122_1302880482637, right?
Another error @firebug:
POST http://www[dot]rodocomp[dot]si/shopmanager/server/datata...llback=jQuery152008148431712533122_1302880482637 POST http://www.rodocomp.si/shopmanager/server/datatables?callback=jQuery152008148431712533122_1302880482637 500 Internal Server Error 252ms
Answer:
An Error Was Encountered Unable to load the requested file: ajax.php
What is ajax.php file ??
This is my JavaScript code:
$('#example').dataTable({
'bProcessing' : true,
'bServerSide' : true,
'sAjaxSource' : '<?php echo base_url(); ?>server/datatables',
'sPaginationType': 'full_numbers',
'bAutoWidth' : false,
'aoColumns' : [
{ 'sName': 'edit', 'bSortable': false },
{ 'sName': 'delete', 'bSortable': false },
{ 'sName': 'products.products_id', 'bVisible': false },
{ 'sName': 'products.products_price' }
],
'fnServerData' : function(sSource, aoData, fnCallback)
{
$.ajax({
'dataType': 'json',
'type' : 'POST',
'url' : sSource,
'data' : aoData,
'success' : fnCallback
});
},
});
What am I doing wrong?
Regards, Mario