Jun 26, 2012, 7:47 PM
[CLOSED] How to attach/detach listener handlers on the client?
Hi,
I'd like to detach or disable listener handlers on the client so that the same code doesn't execute repeatedly on every event. E.g., as soon as a Save button was made enabled in response to text change in a TextArea, I'd like to disable the KeyPress handler and re-enable it for the TextArea only when the changes are saved or reset.
Please advise if such a behavior is possible.
Thanks,
Vadym
I'd like to detach or disable listener handlers on the client so that the same code doesn't execute repeatedly on every event. E.g., as soon as a Save button was made enabled in response to text change in a TextArea, I'd like to disable the KeyPress handler and re-enable it for the TextArea only when the changes are saved or reset.
Please advise if such a behavior is possible.
Thanks,
Vadym
Last edited by Daniil; Jun 27, 2012 at 5:18 PM.
Reason: [CLOSED]