Question:
My ajax call is:[{reference_id: ‘873’, name: ‘MapTest’, details: ‘Sourced from Open Street Maps’, num_points: 0, num_sections: 23}, {reference_id: ‘899’, name: ‘Albury C roads’, details: ‘Sourced from Open Street Maps’, num_points: 0, num_sections: 0}]
but it is not bound to the table what am I missing?
Update
By removing the success and error properties, data started binding..Why?

Answer:
As you have seen, you should not override the jQuery Ajaxsuccess
option in your DataTables ajax
option.As documented here:
…the success option of ajax should not be altered – DataTables uses it internally to execute the table draw when the data load is complete.
Use the
dataSrc
option instead, for any custom processing you may want to do after receiving the JSON response via Ajax.(I have not experimented with the
error
property of the DataTables ajax
option – it may be the same situation as the success
option. It’s not mentioned in the documentation I linked to.)If you have better answer, please add a comment about this, thank you!