Summary


Form fields have been accessible via JavaScript since the earliest incarnations of the language. The primary goal in accessing form elements is to validate their contents before submission. However, we also saw in this chapter that usability improvements are possible using very small amounts of code. More complex examples, such as fully dynamic forms, are also possible, and with the DOM, forms can even be more dramatically modified. Programmers are encouraged to either write their own or obtain validation libraries to ensure the highest quality form data is submitted to their Web applications. However, JavaScript developers should always assume that their validation routines can be bypassed by a malicious user and perform checks on the server-side as well. The next chapter will examine another common use of JavaScript ”image rollovers and screen animations.




JavaScript 2.0
JavaScript: The Complete Reference, Second Edition
ISBN: 0072253576
EAN: 2147483647
Year: 2004
Pages: 209

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net