JSON change handling
JSON change handling
wooosaiiii
Posts: 1Questions: 1Answers: 0
Hello,
I need a bit of help with DataTables. I am using built-in AJAX calls to update data.
Server usually returns array of JSON objects:
[{"column1":value, "column2":value, "column2":value}, {"column1":value, "column2":value, "column2":value},...]
But if there is no data in DB, server returns JSON object:
[{"error":true, "message":"error description"}
When this happens DataTables throw alert box which is something I don't want. I would like to display "No data".
What are my options?
Thanks
This discussion has been closed.