CHAPTER ELEVENDefining Spry Validation Widgets

Adobe has implanted several Spry tools in Dreamweaver CS4 that make it easy to define forms with attached validation scripts. These scripts test form content before it is submitted to make sure certain rules are met; specifically in the case of the new Spry form fields, they require that a visitor fill in a form field before submitting the form.

For example, if you want to require that visitors fill in the E-mail Address field in a form before they submit it, you can place a Spry Validation Text Field in your form. The four how-tos in this chapter explain how to use these Spry validation widgets.

All Spry validation widgets generate JavaScript to allow a form field to test input before processing ...

Get Adobe® Dreamweaver® CS4 How-Tos: 100 Essential Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.