I am relatively new Ajax development and I have recently had a number of problem brought to my attention with code that was written before I started my new position. The problems seem to have their root in the execution of multiple methods from the same trigger action. For example:
a. A field had a flush method on it, data is entered into the field, but the user clicks a button before leaving the field. The flush method is performed and immediately after returning to the page, the button click method is performed.
b. A str control has an on-click method on it as well as a button in the rows of the str control. When clicking the button, the button method is performed, immediately followed by the str onclickmethod.
What is the expected behavior when separate methods are possible based on the same user action?
It seems that suddenly users are reporting problems with code that has not changed because both methods are being executed back-to-back. In December, we upgraded NJX. Is it possible only one of the methods were executed before the upgrade and now both methods execute? I haven’t been in this position long enough to know if the behavior is different or if these applications have always been poorly coded and it is only coincidence that a number of problems have recently presented themselves.