Closed ottopic closed 4 years ago
Hello,
Did you look at the complete example from https://jeditable.elabftw.net/ ? There is a callback example:
Yes sure, but variable result is put by default inside edited text field value. So, if I return form server side script a json like {success: false, error: 'wrong data'} I can't prevent it replace original edited text.
Then you might want to use the intercept
. There is code for it on the demo page a bit lower.
Yes, it is. Thank you. Intercept is not mentioned inside documentation and API sections.
Best regards
Intercept is not mentioned inside documentation and API sections
Correct! I'll add it.
Hello, I have tried to manage server side's result to show to user alert popup if error occurred. Problem is that my callback json result is replaced into edited text field.
Is there a workaround to do this?
Best regards