empty table message not working

empty table message not working

statementoutstatementout 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,

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    That looks like it should work. Could you link to a test page showing the issue so it can be debugged please.

    Allan

  • statementoutstatementout Posts: 2Questions: 1Answers: 0

    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}

This discussion has been closed.