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 1098 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Say that you have a
three-column table, where the first column is intended for labels, the second for the form field, and the third
for validation error messages. The best technique that I have discovered for integrating Spry Validation widgets
into such a table is to begin by placing the widget in the middle cell of the row. Assuming you have a label
in the first column, your code will look like this:

Name:


A value is
required.

 

Next, move the id attribute, here id=???sprytextfield1???, from the outer to the tag. Then, delete
the outer tags; because you??™ve identified the entire row with the Spry ID, these are no longer necessary.
Finally, move the tag with the required message to the third column. Your final code will look
like this:

Name:

A value is required.

Unfortunately, this rearrangement of the code causes the Spry Property inspector not to be shown, so it is recommended
that all adjustments to the widget take place prior to moving the code.


Pages:
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110