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

Chapter 29. Performing Form Validation > The Need for Browser-Based Validation

The Need for Browser-Based Validation

Before JavaScript came along, Web servers would spend inordinate amounts of processing time and cycles checking the data submitted from a form and, all too often, returning the data back to the user to fill in an empty field or fix some invalid entry. Someone eventually realized that machines costing tens of thousands of dollars (which was the cost of the average server machine when the Web was young) ought to have better things to do with their time than chastising users for not entering their e-mail addresses (or whatever). Wouldn't it make infinitely more sense for the validation of a form's data to occur within the browser before the form was even submitted?

The answer to that is an unqualified "Duh!" And once JavaScript took hold with its browser-based scripting, using it to do form validation on the browser became the new language's most important and useful feature.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint