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: 63,490Questions: 1Answers: 10,470 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.