How to show "Processing.." before AJAX call and "No record found." after the call.

How to show "Processing.." before AJAX call and "No record found." after the call.

jainankit0312jainankit0312 Posts: 22Questions: 1Answers: 0
edited July 2012 in General
Hi,

I am making an AJAX call to show the data in the table.
I want to show "Processing..." before making the call, and onSuccess if the data is blank I want to show "No record found."
I am able to show the "Processing.." but if the data is blank, how to show "No record found" ?

Regards,
Ankit

Replies

  • jainankit0312jainankit0312 Posts: 22Questions: 1Answers: 0
    All,

    Any suggestion please ??

    Regards,
    Ankit
  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    I don't really understand - when you return an empty result set (i.e. aaData: []) then DataTables will automatically show 'No records found'. If that isn't working for you, please link to a test case showing the issue.

    Allan
This discussion has been closed.