How to save user input when Jeditable ajax post fails

I use Jeditable to send some textarea data to the server. When, for any reason, the ajax message fails (network problem, server error, etc.), you must leave the form visible and save the data entered by the user. Is it possible to do this with Jeditable? Thank!

+3
source share
1 answer

I don't have jeditable, but reading their documentation seems like you need to override their onerror event.

onerror: function (settings, original, xhr) {
var error = eval('(' + xhr.responseText + ')');
//original.reset(); 
}
0
source

Source: https://habr.com/ru/post/1773424/


All Articles