I have a series of textboxes with onchange function implemented to submit the changed value to the database.
If the database delivers an error, I try to restore the component's oldvalue using 'setValue'. But the 'setValue' call triggers the onchange function again and as a result the submit gets called again - resulting in a never ending loop!
Please find the demo here:
http://jsfiddle.net/2xo0cyz9/What am I doing wrong here? I dont want to call reset on the textbox. I want to restore the previous value.
The same problem exists with date and comboboxes as well. Please help. Thanks.