Replace oSettings.oLanguage.sProcessing with error message
Replace oSettings.oLanguage.sProcessing with error message
vinodjayendra
Posts: 5Questions: 0Answers: 0
I am trying to replace the Processing.. text with the server side error message when an 500 error occurs .. the below snippet doesn't work, any pointers ?
fnServerData: function(sUrl, aoData, fnCallback, oSettings) {
....
error: function (jqXHR, textStatus, errorThrown) {
oSettings.oLanguage.sProcessing = "Server error :" + errorThrown
...
}
}
fnServerData: function(sUrl, aoData, fnCallback, oSettings) {
....
error: function (jqXHR, textStatus, errorThrown) {
oSettings.oLanguage.sProcessing = "Server error :" + errorThrown
...
}
}
This discussion has been closed.
Replies
Allan
Thanks for the reply.
I was trying to replicate the solution posted here:
http://datatables.net/forums/discussion/3257/how-to-display-server-side-status-messages/p1
by applying the changes to sProcessing element.
But looks like i have to go down the path of defining my own custom error label and accessing it in the error function - would be useful if there any examples handy.