In my jQuery datatable, I am utilizing the code below to refresh the data:
$(".unread-rows").click( function(e) {
e.preventDefault();
message_table.fnReloadAjax("/letters/ajax/inbox/1");
message_table.fnDraw();
$(this).addClass("active").siblings().removeClass("active");
});
While it successfully reloads the data, an alert pops up stating:
DataTables warning (table id = 'DataTables_Table_0'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
Any insights into what might be triggering this issue?