empty table message not working
empty table message not working
statementout
Posts: 2Questions: 1Answers: 0
i using server side processing and when the table is empty i want to display a message, but it can't get it to work.
$("#inventory").dataTable({
autoWidth: true,
language: { infoEmpty: "There are currently no active jobs.",
emptyTable: "There are currently no active jobs.",
zeroRecords: "There are currently no active jobs."
},
serverSide: true,
ajax: "inventory.JSON.php?access="+access,
This discussion has been closed.
Answers
That looks like it should work. Could you link to a test page showing the issue so it can be debugged please.
Allan
the site requires a login and includes company sensitive information. i can change the processing text, but when the table is empty is just displays "processing" or whatever text i put in the language: processing option. maybe it has something to do with the json?
the response is:
{"draw":"1","recordsTotal":0,"recordsFiltered":0}