ebook img

JavaScript and Ajax for the Web, Sixth Edition PDF

756 Pages·2006·12.019 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview JavaScript and Ajax for the Web, Sixth Edition

Visual QuickStart Guide JavaScript and Ajax for the Web, Sixth Edition Visual QuickStart Guide JavaScript and Ajax for the Web, Sixth Edition By Tom Negrino, Dori Smith ............................................... Publisher: Peachpit Press Pub Date: August 28, 2006 Print ISBN-10: 0-321-43032-8 Print ISBN-13: 978-0-321-43032-8 Pages: 512 Table of Contents | Index Need to learn JavaScript fast? This best-selling reference's visual format and step-by-step, task-based instructions will have you up and running with JavaScript in no time. In this completely updated edition of our best-selling guide to JavaScript, leading Web and computing experts Tom Negrino and Dori Smith use crystal- clear instructions and friendly prose to introduce you to all of today's JavaScript essentials. Along the way, you'll find extensive coverage of Ajax and XML techniques, current browsers (Opera, Safari, Firefox), and more. Visual QuickStart Guide--the quick and easy way to learn! Easy visual approach uses pictures to guide you through JavaScript and show you what to do. ● Concise steps and explanations get you up and running in no time. ● Page for page, the best content and value around. ● Companion Web site at www.javascriptworld.com offers sample scripts, updates, and more! ● file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visual%...0the%20Web%206th%20Edition%20(2006)/0321430328/main.html [03.07.2007 10:23:57] Table of Contents Visual QuickStart Guide JavaScript and Ajax for the Web, Sixth Edition By Tom Negrino, Dori Smith ............................................... Publisher: Peachpit Press Pub Date: August 28, 2006 Print ISBN-10: 0-321-43032-8 Print ISBN-13: 978-0-321-43032-8 Pages: 512 Table of Contents | Index Copyright Special Thanks To Introduction Chapter 1. Getting Acquainted with JavaScript What JavaScript Is JavaScript Isn't Java Where JavaScript Came From What JavaScript Can Do What JavaScript Can't Do What Is Ajax? The Snap-Together Language Handling Events Values and Variables Assignments and Comparisons Writing JavaScript-Friendly HTML What Tools to Use? Chapter 2. Start Me Up! Where to Put Your Scripts About Functions Using External Scripts Putting Comments in Scripts Alerting the User Confirming a User's Choice Prompting the User Redirecting the User with a Link Using JavaScript to Enhance Links file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visu...he%20Web%206th%20Edition%20(2006)/0321430328/toc.html (1 of 5) [03.07.2007 10:23:58] Table of Contents Working with Referrer Pages Chapter 3. Language Essentials Around and Around with Loops Passing a Value to a Function Detecting Objects Working with Arrays Working with Functions That Return Values Updating Arrays Using Do/While Loops Calling Scripts Multiple Ways Using Multi-level Conditionals Handling Errors Chapter 4. Working with Images Creating Rollovers Creating More Effective Rollovers Building Three-State Rollovers Triggering Rollovers from a Link Making Multiple Links Change a Single Rollover Working with Multiple Rollovers Creating Cycling Banners Adding Links to Cycling Banners Building Wraparound Slideshows Displaying a Random Image Cycling Images with a Random Start Chapter 5. Frames, Frames, and More Frames Keeping a Page out of a Frame Forcing a Page into a Frame Forcing a Site into a Frame Setting a Target Creating and Loading a Dynamic Frame Sharing Functions between Frames Storing Information in Frames Loading Multiple Frames at Once Working with Iframes Loading Iframes with JavaScript Chapter 6. Working with Browser Windows Opening a New Window file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visu...he%20Web%206th%20Edition%20(2006)/0321430328/toc.html (2 of 5) [03.07.2007 10:23:58] Table of Contents Loading Different Contents into a Window Opening Multiple Windows Opening Multiple Windows Simultaneously Updating One Window from Another Creating New Pages with JavaScript Closing a Window Opening Windows in a Specified Location Moving Windows to a Specified Location Chapter 7. Form Handling Select-and-Go Navigation Changing Menus Dynamically Making Fields Required Checking Fields against Each Other Identifying Problem Fields Putting Form Validation into Action Working with Radio Buttons Setting One Field with Another Validating Zip Codes Validating Email Addresses Chapter 8. Forms and Regular Expressions Validating an Email Address with Regular Expressions Validating a File Name Extracting Strings Formatting Strings Formatting and Sorting Strings Formatting and Validating Strings Replacing Elements using Regular Expressions Chapter 9. Handling Events Handling Window Events Mouse Event Handling Form Event Handling Key Event Handling Chapter 10. JavaScript and Cookies Baking Your First Cookie Reading a Cookie Showing Your Cookies Using Cookies as Counters file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visu...he%20Web%206th%20Edition%20(2006)/0321430328/toc.html (3 of 5) [03.07.2007 10:23:58] Table of Contents Deleting Cookies Handling Multiple Cookies Displaying "New to You" Messages Chapter 11. Introducing CSS Saying It with Style Styles with Class Changing Fonts with CSS Checking Your ID Distinguished Links Embedding Styles in Styles Adding Background Images Positioning Absolutely Chapter 12. Objects and the DOM About Node Manipulation Adding Nodes Deleting Nodes Deleting Specific Nodes Inserting Nodes Replacing Nodes Chapter 13. Making Your Pages Dynamic Putting the Current Date into a Web Page Working with Days Customizing a Message for the Time of Day Displaying Dates by Time Zone Converting Military Time to A.M./P.M. Creating a Countdown Moving an Object in the Document Date Methods Chapter 14. Applied JavaScript Using Sliding Menus Adding Pull-Down Menus A Slideshow with Captions A Silly Name Generator A Bar Graph Generator Style Sheet Switcher Chapter 15. Introducing Ajax Ajax: Pinning It Down file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visu...he%20Web%206th%20Edition%20(2006)/0321430328/toc.html (4 of 5) [03.07.2007 10:23:58] Table of Contents Reading Server Data Parsing Server Data Refreshing Server Data Previewing Links with Ajax Auto-Completing Form Fields Chapter 16. Ajax Toolkits Dragging and Dropping Page Elements Adding a Calendar to Your Page Adding a 2-up Calendar to Your Page Using the Container Utility Adding Animation Effects Implementing the Logger Control for Debugging Chapter 17. Bookmarklets Your First Bookmarklet Changing a Page's Background Color Changing a Page's Styles Web-safe Colors Word Lookups Viewing Images Displaying ISO Latin Characters Converting RGB Values to Hex Converting Values A Bookmarklet Calculator Validating Pages Appendix A. JavaScript Genealogy and Reference JavaScript Versions ECMAScript Browsers and JavaScript Object Flowchart The Big Object Table Appendix B. JavaScript Reserved Words Appendix C. Cascading Style Sheets Reference Appendix D. Where to Learn More Finding Help on the Web Books Index file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visu...he%20Web%206th%20Edition%20(2006)/0321430328/toc.html (5 of 5) [03.07.2007 10:23:58] Copyright Copyright Visual QuickStart Guide JavaScript and Ajax for the Web, Sixth Edition Tom Negrino and Dori Smith Peachpit Press 1249 Eighth Street Berkeley, CA 94710 (510) 524-2178 (800) 283-9444 (510) 524-2221 (fax) Find us on the Web at www.peachpit.com To report errors, send a note to [email protected] Peachpit Press is a division of Pearson Education Copyright © 2007 by Tom Negrino and Dori Smith Editor: Nancy Davis Production Coordinator: Tracey Croom Proofreader: Tiffany Taylor Compositor: Danielle Foster Indexer: Ron Strauss Cover design: Peachpit Press Notice of Rights All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For information on getting permission for reprints and excerpts, contact permissions@peachpit. com Notice of Liability The information in this book is distributed on an "As is" basis, without warranty. While every precaution has been taken in the preparation of the book, neither the authors nor Peachpit Press, shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the computer software and hardware products described in it. file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visua...b%206th%20Edition%20(2006)/0321430328/copyrightpg.html (1 of 2) [03.07.2007 10:23:58] Copyright Trademarks Visual QuickStart Guide is a registered trademark of Peachpit Press, a division of Pearson Education. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Peachpit Press was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book. 0 9 8 7 6 5 4 3 2 1 Printed in the United States of America Dedication To the memory of Bill Horwitz and Dorothy Negrino, because they loved learning. file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visua...b%206th%20Edition%20(2006)/0321430328/copyrightpg.html (2 of 2) [03.07.2007 10:23:58] Special Thanks To Special Thanks To Big thanks to our editor Nancy Davis; her expert touch, warm compassion, and fierce dedication always make our work better. Thanks to Tracey Croom for her excellent production work. Our heartfelt thanks to Danielle Foster, the book's compositor, who laid out the book under incredible time pressure and pulled off the job with grace and aplomb. We're grateful to Peachpit's Nancy Ruenzel for her support. Thanks to our son Sean, for understanding when his parents got cranky, and for making himself dinner on too many occasions. We'd like to express our special thanks to all of the high school, college, and university instructors who chose to use the previous editions of this book as a textbook for their classes. Dori would like to thank the wonderful ladies in the W&S group for their loving kindness and virtual hugs. And thanks are also due to the Wise-Women's Web Design community (http://www.wise-women.org) for their patience, support, and inspiration as role models. Music is the fuel for Tom's writing, and this book is no exception. The soundtrack and musical inspiration for this sixth edition was graciously provided by lots of uncool bouncy pop music that will remain unidentified, Wolfgang Mozart, Patty Griffin, Richard Shindell, KT Tunstall, Bruce Springsteen, Rosanne Cash, REM, Antonio Vivaldi, Pandora Radio, and the shuffle feature in iTunes. file:///Z|/Peachpit%20Press/(Peachpit%20Press)%20Visual%...he%20Web%206th%20Edition%20(2006)/0321430328/pref01.html [03.07.2007 10:23:58]

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.