I think you need to bind it after the ajax ajax is complete. This is a way to do this.
$.ajax({
url: '/path/to/file',
type: 'default GET (Other values: POST)',
dataType: 'default: Intelligent Guess (Other values: xml, json, script, or html)',
data: {param1: 'value1'},
})
.done(function() {
console.log("success");
})
.fail(function() {
console.log("error");
})
.always(function() {
// after the ajax is complete, this function is
// called and you can bind the datatable function on your table
$('#tableID').dataTable();
console.log("complete");
});