By award-winning Web developer Dan Barrett, whose clients have included Hewlett-Packard, Electronic Arts, and Pacific Bell.
You'll master all this and much more:
Rely on Essential Guides for ALL the Web Skills You Need!All these books share the same great format and the same dynamic Web site ... so once you've used one, they're all a piece of cake!
Click here for a sample chapter for this book: 0131001477.pdf
About the Author.
1. Dynamism and Detection.
2. Image Rollovers.
Project I: Image Rollover Script. Creating and Inserting the Image Objects. Image Rollover Functions. Creating and Inserting the Event Handlers. Reviewing the Script.
Project II: Multiple Image Rollover Script. Creating and Inserting the Image Objects. Inserting the Rollover Functions. Creating and Inserting the Event Handlers. Reviewing the Script.
Project III: Random Banner Ad Rotator Script. Creating and Inserting the Image Objects. Random Image Generator Function. Dynamically Printing Out the Image. Reviewing the Script. Recap. Advanced Projects.
Project II: Using Multiple Pull-Down Menus for Navigation. Creating the Arrays. Creating the Drill-Down Menu Function. Creating the Navigation Function. Inserting the Event Handlers. Reviewing the Script.
4. Error Handling in Forms.
Project I: Dynamically Selecting Multiple Form Fields. Creating the Change Checkbox State Function. Inserting the Event Handlers. Reviewing the Script.
Project II: Error Handling of Forms. Checking Forms for Empty Text Box Fields. Making Sure a Pull-Down Menu Option Was Chosen. Checking Email Addresses for . and @. Checking for Area Codes in Phone Numbers. Making Sure Zip Codes Have Only Numbers.
Project III: Letting the User Know What's Wrong. Reviewing the Script. Recap. Advanced Projects.
Project III: Making Sure Your Frames Site Shows Up in Frames. Checking for the Presence of Frames. Reloading the Page within the Frameset. Reviewing the Script. Recap. Advanced Projects.
Project I: Interactive Photo Slideshow. Creating and Inserting the Image Objects. Creating the Photo Arrays. Creating the Slideshow Functions. Inserting the Event Handlers. Reviewing the Script.
Project II: Searchable Designer Database. Functional Specification. Multidimensional Arrays. Creating and Filling the Arrays. Creating the Search Functions. Inserting the Event Handlers. Reviewing the Script. Recap. Advanced Projects.
Appendix A. Event Handlers.
This is often the way in which we expand our skills: We are given a job, and if we don't know exactly how to do it, we quickly learn how. In keeping with this real-world model, this book is split into two main sections. In each main section, we create and/or upgrade the Web sites for one of two fictitious companies.
As an extra bonus, we have created a Web site where you can go to download all of the code and images needed to follow along with each project in the book. You can only learn so much from reading how to do something; the true way to learn is to get your hands dirty and do the work. The companion site for this book can be found at
One of the main advantages of using client-side scripting is that the script is able to detect and make use of user-initiated events, such as changes to a form or the mouse rolling over a particular graphic. The script is then able to use that information to call other parts of the script, and all of this can be done without going back to the Web server and grabbing more information.
In the first section, we can find the following:
The second section contains the following:
A security feature called the Same Origin Policy also restricts the access of a script from one origin access to certain properties or files at other locations. For example, if you have a script located at
http://www.yoursite.com/test.html and it tries to access certain properties of an HTML page located at
http://www.theirsite.com/test.html, the Same Origin Policy will deny your script access.
As you read this book, if you think of a possible solution that may differ from the examples, give it a shot; you can often stumble onto a solution that others may not have thought of. With all that said, let's get on with the learning.