I successfully use jeditable to send through a function using jQuery.ajax and the async: false parameter, but I have an interrupt problem if an error is returned.
How can I make the edit window stay on and / or revert back to its original value if there are errors? I am returning the status of http codes.
so something like
async : false .ajax submit here...
if (xhr.status == 200) {
return value;
else {
alert ('returned error');
}
I tried not to return a value from a function that keeps editing the field activated and ready for another, but then the ESC key no longer works, and if I go outside the editing area, the edit box remains.
Thanks in advance!
source
share