ajax error callback
ajax error callback
![AlekhineGunn](https://secure.gravatar.com/avatar/dfdf7d4d2665c24c2bf3e15f65f86433/?default=https%3A%2F%2Fvanillicon.com%2Fdfdf7d4d2665c24c2bf3e15f65f86433_200.png&rating=g&size=120)
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!