Consultor Eletrônico



Kbase P157328: HTML form's submit button needs to be pressed twice to submit the form
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/12/2009
Status: Unverified

SYMPTOM(s):

HTML form's submit button needs to be pressed twice to submit the form

On the first submits, nothing happens other than verifying the record on that form field against the database

FACT(s) (Environment):

The form is designed so upon leaving the field or moving the cursor to another form field, it validates the record on that field against the database
One submit press works only when tabbing to the submit button and then pressing the submit
The form page is pre-filled with the database records when it first displays on the internet browser
Have javascript validation to validate record upon the leave of the cursor from each of the form fields
All Supported Operating Systems
WebSpeed 3.1x
OpenEdge 10.x

CAUSE:

The javascript validation is validating form field upon the leave of the cursor which is expected. So when the cursor is on one of the form field but did not leave that form field. other the other hand, user presses the submit button. The first pressing of the submit button causes the java script to realize that the cursor is left and checks the form field and validates the record on that field against the database. The second submit then works as the cursor is not on any of the form field.

FIX:

The HTML application is working as expected. The form should check the record on value change only so it does not have to check every pre-filled records on each fields upon the cursor move against the database. This way submit should work on the first press of the submit button.