Empty json result

Empty json result

jgauffinjgauffin Posts: 5Questions: 0Answers: 0
edited March 2010 in Bug reports
Returning json with no rows will cause DataTables to not remove the "processing..." text.

Example result:


{
"sEcho": 2,
"iTotalRecords": 0,
"iTotalDisplayRecords": 0
}

Replies

  • allanallan Posts: 57,300Questions: 1Answers: 9,127 Site admin
    It's not a bug - you need to return aaData as an empty array. Have a look at http://datatables.net/examples/data_sources/server_side.html in Firebug when you filter for 'zzz' or something.

    Allan
  • jgauffinjgauffin Posts: 5Questions: 0Answers: 0
    Correct, thank you.
This discussion has been closed.