December 2002
Intermediate to advanced
745 pages
17h 26m
English
Drop-downs are useful tools for allowing users to quickly search for the record they would like to see, without going to a separate search screen. A drop-down can be placed at the top of a detail-level screen to allow a user to select a new record to view and refresh the screen based upon that value. Implementing this functionality requires an understanding of JavaScript events and creating multiple forms on the same page.
One of the JavaScript events described in Chapter 7, “Introduction to JavaScript,” is onChange. When a drop-down selection box changes, an onChange event handler can respond to this action. The example below shows an onChange event handler attached to ...