JavaScript and DHTML Cookbook, from O'Reilly. Chapter 8 Dynamic Forms | 2 | WebReference

JavaScript and DHTML Cookbook, from O'Reilly. Chapter 8 Dynamic Forms | 2

JavaScript & DHTML Cookbook

PHP Cookbook Book Cover

Chapter 8: Dynamic Forms

The JavaScript & DHTML Cookbook is all about adding value to the content of a web page. The book focuses on practical and sensible applications of scripting, rather than flying images and gratuitous color changes. For every problem Goodman addresses, there's a solution or "recipe"--a focused piece of code that web developers can insert directly into their applications. Yet, rather than just cut-and-paste code, you also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to your designs.

Excerpt Contents

  • Introduction
  • Referencing Forms and Controls
  • Form Validation Strategies
  • Email Submissions and Return Pages
  • Auto-Focusing the First Text Field
  • Performing Common Text Field Validations
  • Preventing Form Submission upon Validation Failure
  • Auto-Focusing an Invalid Text Field Entry
  • Changing a Form's Action
  • Blocking Submissions from the Enter Key
  • Advancing Text Field Focus with the Enter Key
  • Submitting a Form by an Enter Key Press in Any Text Box
  • Disabling Form Controls
  • Hiding and Showing Form Controls
  • Allowing Only Numbers (or Letters) in a Text Box
  • Auto-Tabbing for Fixed-Length Text Boxes
  • Changing select Element Content
  • Copying Form Data Between Pages

Created: March 27, 2003
Revised: May 6, 2003

URL: https://webreference.com/programming/java_dhtml/chap8