Server-side processing: communicating error

Server-side processing: communicating error

datatablesdatatables Posts: 5Questions: 0Answers: 0
edited June 2011 in General
There seems to be no way to communicate server-side errors via the server-side processing API? I.e. we interrupt server-side queries if they take too long to respond (which could be because of user-error or because of resource problems on the server). It would be nice if there was a means to let the datatables know that it's server request was stopped, because of an error, so that the user can be notified of the problem, instead of being presented with an empty table.

Replies

  • schalonerschaloner Posts: 4Questions: 0Answers: 0
    The JSON you send back to the client can contain arbitrary fields, so you can always pop a message in there and check for it on the client side. If it's there, present it to the user to explain the situation.

    - Steve
This discussion has been closed.