Processing Error -- bServerSide: false
Processing Error -- bServerSide: false
I have a use case where I'm using bServerSide: false and data is loaded from the server using sAjaxSource. Once the data is loaded from the server to the client, the client handles all processing. If there is an error in the retrieval of the of the data sourced from the service that sAjaxSource invokes, datatables remains in a processing state as mentioned in several other posts.
The accepted solution appears to be adding error handling capabilities using fnServerData as mentioned in the link at the bottom of this post. However, it is my understanding that fnServerData would be for when bServerSide is set true. Is there a way to handle processing errors when bServerSide is set to false?
Thanks for your help and this is such a great product.
Answers
Sorry for the bump on this. I have a deadline.
The old fnServerData option will work for both client-side and server-side processing in DataTables 1.9.
In 1.10+ you would use the
ajax
option.Allan
Thanks for the reply Allan. I found the below post last night:
http://datatables.net/forums/discussion/14841/how-to-catch-response-of-server-side-processing-if-error-occurs
I did some trial and error with the syntax by removing the sAjaxSource and it worked. One of the things I struggle with a bit is knowing which configuration syntax is available/valid depending on implementation. I find it is a little bit of a guessing game at times but I guess that is expected due to the nature of javascript.