Domino Code Fragment
Code Name* JavaScript failContains function | Date* 04/19/2000 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:. | |
Description* The JavaScript failContains function looks like this: | Type* JavaScript | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: Return either a Boolean True or False value so that we can stop the submit. If the function is True, or if a validation failed, we stop the submit, return a JavaScript alert with a specific failure message, and focus the cursor on the field that failed the validation test. T he function illustrated above call three subroutines: getFieldValue, trimBlanks and alertBox. The getFieldValue function retrieves the actual value the user entered or selected in the field being tested. To further explore the getFieldValue function, we need to consider input data types and browser types. |