SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1091 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Validating form fields
Validating form fields is like visiting the dentist: everybody knows they??™ve got to do it, but the experience is
so stressful that avoidance comes easy. Form validations ensure that your site visitors are entering the right
kind of data into your forms??”an often critical requirement, especially if the data is being stored in a
spreadsheet or database. The typical form validation method requires multiple steps for each form element:
first, the form element must be added to the page, and then a client-side or server-side behavior added and
finally error and messages applied. With the Spry form validation widgets, all of these tasks are included in
a single step.
Because filling out a form is an interactive process, each of the Spry form widgets is capable of displaying
different states; the number of states depends on the type of form element and the options chosen at design
time. The custom Property inspector for each widget gives you the flexibility to switch between the various
states at design time. For example, you could choose the Spry Validation Text Field widget??™s Invalid Format
state to modify the error message and then switch to the Valid state to fine-tune the background-color property
for a successful entry.


Pages:
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103