1.

I Have A Form With A Submit Button. On The Form And The Submit Button Are Two Separate Listeners. Which Is Invoked First?

Answer»

The button’s LISTENER should get invoked when the FORM encounters your button during the rewind. the form’s submitListener should get invoked after the form has completed its rewind, and thus after all other listeners have been invoked. note - this can MEAN that the listener for a button can be invoked BEFORE the form has ’submitted’ all its values - it depends where your INPUT FIELDS are relative to your button.

The button’s listener should get invoked when the form encounters your button during the rewind. the form’s submitListener should get invoked after the form has completed its rewind, and thus after all other listeners have been invoked. note - this can mean that the listener for a button can be invoked BEFORE the form has ’submitted’ all its values - it depends where your input fields are relative to your button.



Discussion

No Comment Found