I have This table which i'm trying to add ajax by adding this code :
$('#example').DataTable({
'serverSide': true,
"bPaginate": false,
"info": false,
"iDisplayLength":20,
"bLengthChange":false,
'ajax': {
type: 'GET',
'url': 'https://api.myjson.com/bins/ftw5f',
'data': function(data) {
return data;
}
},
"columns": [{
"data": 'Name'
}, {
"data": 'Position'
}, {
"data": 'Office'
},
{
"data": 'Age'
},
{
"data": 'Start date'
},
{
"data": 'Salary'
},
],
initComplete: function () { // the filters });
When it's hard coded - like in fiddle - it's working - but when i add the ajax - and remove all the hard coded tr's - the filters don't work.... i checked the console for errors - but there are none.... thanks.