Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Ajax > Ajax Field Validation

Ajax Field Validation

All other things being equal, it’s best to give users immediate validation feedback as they type in an input field. Field validation is a common Ajax use case.

Figure 10–5 shows an example of Ajax field validation. The name component has a validator that checks to see whether the name contains an underscore; if so, the validator thows a validator exception containing an error message.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial