ajax error callback
ajax error callback
AlekhineGunn
Posts: 2Questions: 0Answers: 0
The API provides callbacks for successful AJAX calls but what about when something goes wrong? For example, if the user's session has been killed, the REST call might return a 403. How do I deal with that? For example, ajax.reload only provides a success callback as far as I can tell.
This discussion has been closed.
Replies
I think you should be able to use the
error
function that can be defined in theajax
option. According to the docs:However the
success
parameter should not be overridden.Kevin
Thank you! All set!