Empty server response

Empty server response

amr_kambojamr_kamboj Posts: 2Questions: 0Answers: 0
edited October 2011 in DataTables 1.8
can anybody tell me that how to destroy dataTable when there is empty server response (i.e ajax response)

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    oTable.fnDestroy() ?

    http://www.datatables.net/ref#fnDestroy
  • amr_kambojamr_kamboj Posts: 2Questions: 0Answers: 0
    My problem is that when there is empty response, dataTable shows message "no data in table" and paging with "first", "previous", "next","last" buttons.
    But i don't want to show any paging or any dataTable when there is no data or empty response.
    Please help me to trace out the problem.

    Thnx fbas for replying
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited October 2011
    why not just .hide() the div containing the table and other sDom elements?
This discussion has been closed.