I'm using Jeditable in order to post some textarea data to the server. When an ajax post fails for some reason (network problem, server error etc.) it is necessary to leave the form visible and preserve the data that user has entered. Is it possible to do开发者_高级运维 that thing with Jeditable? Thanks!
I don't have jeditable, but by reading their documentation it appears you need to override their onerror event.
onerror: function (settings, original, xhr) {
var error = eval('(' + xhr.responseText + ')');
//original.reset();
}
精彩评论