Another common feature among the Spry form widgets is the ability to apply the validation at multiple
points in the process. By default, all the widgets automatically perform the requested validation when the
user submits the form. Designers can also opt to perform the validation when the user clicks or tabs outside
of a form field (onBlur) or when the value in the form field is altered (onChange).
It??™s important to understand that the name that appears in the Property inspector when the
Spry validation widget is selected is not the name of the form element. The name of a form element
is often a critical part of a Web application. To name a form element within a Spry widget, click anywhere
on the page outside of the widget and then click on the form element itself; the Property inspector for
the form element is now available and the name can be entered in the upper-left corner.
CAUTION CAUTION
613
Powering Ajax Pages with Spry 18
In all, there are four different Spry widgets for various form elements: text field, textarea, checkbox, and
select menu. Let??™s start our tour of them by taking a look at the Spry Validation Text Field first.
Spry Validation Text Field
The text field is arguably the most common form element as it can be used for so many different purposes.
Pages:
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104