ajax.reload doesn't seem to exist

ajax.reload doesn't seem to exist

womplifywomplify Posts: 30Questions: 3Answers: 0

I am instantiating table with
Posts_DataTable = $('#posts').dataTable(...
which is loading data from a server using ajax.
I read in the documentation that I would be able to then reload the table, using Posts_DataTable.ajax.reload(), however, the entire Posts_DataTable.ajax doesn't exist.
What am I missing?

Answers

  • womplifywomplify Posts: 30Questions: 3Answers: 0

    Hmm.. I just saw that it works if I call after adding DataTable() between the table object and the ajax.. like this..
    Posts_DataTable.DataTable().ajax.reload();

  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin

    Yup - second top FAQ :-)

    Allan

This discussion has been closed.