I Have a problem with the ajax return object

I Have a problem with the ajax return object

PontyPandyPontyPandy Posts: 2Questions: 1Answers: 1

Hi,

I need some help, i have some problems with my ajax return.
In case of empty elements the server returns:

JSON
{

"error": true,
"response": "Requesição já não se encontra em Lista de Espera."

}

and my datatable returns de alert:
"DataTables warning: table id=DataTables_Table_1 - true"

oTable = $("#mytable").DataTable({
"ajax": {
"url" : URL,
"dataSrc": " response"
}

How can i treat this case?
Thanks.

This question has an accepted answers - jump to answer

Answers

  • PontyPandyPontyPandy Posts: 2Questions: 1Answers: 1
    Answer ✓

    I solved the problem, i was with a old version of dataTables.

This discussion has been closed.