Synopses & Reviews
'
Your hands-on, step-by-step guide to the fundamentals of JavaScript development.
Teach yourself how to program with JavaScript -- one step at time. Ideal for developers with fundamental programming skills, this practical tutorial provides the clear guidance and hands-on examples you need to create or customize interactive Web applications using core JavaScript features and techniques.
Discover how to:
- Write and deploy JavaScript code with Microsoft® Visual Studio® 2010, the Eclipse IDE, or text editors
- Work with JavaScript syntax and data types
- Use the Document Object Model to retrieve, create, and change HTML elements
- Create rollover images and slideshow effects
- Validate and provide feedback for user input on Web forms
- Manipulate CSS styles and respond to browser events
- Develop interactive Web applications using AJAX
- Help speed development with JavaScript frameworks such as jQuery
Your Step by Step digital content includes:
- All the books practice files -- ready to download and put to work.
- Fully searchable online edition of this book -- with unlimited access on the Web.
The print version of this book includes free digital content online. To download, please visit O\'Reilly\'s web site, search for the title of this book to find its catalog page, and click on the link below the cover image (Examples, Companion Content, or Practice Files). Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to [email protected].'
Synopsis
Get the hands-on, step-by-step guide to learning JavaScript for Web development. Even with no programming experience, you can teach yourself the essentials of working with the JavaScript programming language—one step at a time. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. Whether you’re building skills for your career or just want to customize your personal Web site, you’ll learn the core capabilities and fundamental techniques for working with JavaScript—and begin creating professional-looking Web sites. Includes a companion CD with practice exercises, code samples, data sets, and a fully searchable eBook.
For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
Synopsis
Get the hands-on, step-by-step guide to learning JavaScript for Web development. Even with no programming experience, you can teach yourself the essentials of working with the JavaScript programming language—one step at a time. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. Whether youre building skills for your career or just want to customize your personal Web site, youll learn the core capabilities and fundamental techniques for working with JavaScript—and begin creating professional-looking Web sites. Includes a companion CD with practice exercises, code samples, data sets, and a fully searchable eBook.
A Note Regarding the CD or DVD
The print version of this book ships with a CD or DVD. For those customers purchasing one of the digital formats in which this book is available, we are pleased to offer the CD/DVD content as a free download via O'Reilly Media's Digital Distribution services. To download this content, please visit O'Reilly's web site, search for the title of this book to find its catalog page, and click on the link below the cover image (Examples, Companion Content, or Practice Files). Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to [email protected].
About the Author
Steve Suehring is a technology architect who’s written about programming, security, network and system administration, operating systems, and other topics for several industry publications. He speaks at conferences and user groups and has served as an editor for a popular technology magazine.
Table of Contents
Acknowledgments; Introducing JavaScript Step by Step; Features and Conventions of This Book; Using the Book's CD; Getting Help; Part I: JavaWhat? The Where, Why, and How of JavaScript; Chapter 1: JavaScript Is More Than You Might Think; 1.1 A Brief History of JavaScript; 1.2 What's in a JavaScript Program?; 1.3 Placing JavaScript on Your Web Page; 1.4 What JavaScript Can Do; 1.5 What JavaScript Can't Do; 1.6 Tips for Using JavaScript; 1.7 Exercises; Chapter 2: Developing in JavaScript; 2.1 JavaScript Development Options; 2.2 Configuring Your Environment; 2.3 Writing in JavaScript with Visual Studio 2005; 2.4 Writing JavaScript with Eclipse; 2.5 Writing JavaScript Without an IDE; 2.6 Debugging JavaScript; 2.7 Exercises; Chapter 3: JavaScript Syntax and Statements; 3.1 A Bit of Housekeeping; 3.2 JavaScript Statements; 3.3 Reserved Words in JavaScript; 3.4 A Quick Look at Functions; 3.5 Exercises; Chapter 4: Working with Variables and Data; 4.1 Data Types in JavaScript; 4.2 Defining and Using Variables; 4.3 Type Conversions; 4.4 Exercises; Chapter 5: Using Operators and Expressions; 5.1 Meet the Operators; 5.2 Additive Operators; 5.3 Multiplicative Operators; 5.4 Bitwise Operators; 5.5 Equality Operators; 5.6 Relational Operators; 5.7 Unary Operators; 5.8 Assignment Operators; 5.9 Exercises; Part II: Applying JavaScript; Chapter 6: Controlling Flow with Conditionals and Loops; 6.1 If (and how); 6.2 Else if and else Statements; 6.3 Multiple Levels of Conditionals; 6.4 Ternary Conditionals; 6.5 Switch; 6.6 Looping with while; 6.7 Using for Loops; 6.8 Validating Forms with Conditionals; 6.9 Exercises; Chapter 7: Working with Functions; 7.1 What's in a Function?; 7.2 Methods; 7.3 A Look at Dialog Functions; 7.4 Exercises; Chapter 8: Objects in JavaScript; 8.1 Object-Oriented Development; 8.2 Creating Objects; 8.3 More About Arrays; 8.4 Built-in Objects; 8.5 Exercises; Chapter 9: The Browser Object Model; 9.1 Introducing the Browser; 9.2 A Sense of Self; 9.3 Getting Information About the Screen; 9.4 Using the navigator Object; 9.5 The location Object; 9.6 The history Object; 9.7 Exercises; Chapter 10: The Document Object Model; 10.1 The Document Object Model Defined; 10.2 Retrieving Elements; 10.3 Working with Attributes; 10.4 Creating Elements; 10.5 Deleting Elements; 10.6 Exercises; Part III: Integrating JavaScript into Design; Chapter 11: Using JavaScript with Web Forms; 11.1 JavaScript and Web Forms; 11.2 Obtaining Form Data; 11.3 Working with Form Information; 11.4 Prevalidating Form Data; 11.5 Exercises; Chapter 12: Creating and Consuming Cookies; 12.1 A Look at Cookies; 12.2 Creating Cookies with JavaScript; 12.3 Reading Cookies with JavaScript; 12.4 Removing Cookies; 12.5 Exercises; Chapter 13: Working with Images in JavaScript; 13.1 Working with Image Rollovers; 13.2 Preloading Images; 13.3 Working with Slideshows; 13.4 Working with Image Maps; 13.5 Exercises; Chapter 14: Browsers and JavaScript; 14.1 Understanding Window Events; 14.2 Detecting Things About the Visitor; 14.3 Opening, Closing, and Resizing Windows; 14.4 Timers; 14.5 Exercises; Chapter 15: JavaScript and CSS; 15.1 What Is CSS?; 15.2 The Relationship Between JavaScript and CSS; 15.3 Exercises; Chapter 16: JavaScript Error Handling; 16.1 An Overview of Error Handling; 16.2 Using try/catch; 16.3 Using the onerror Event; 16.4 Exercises; Part IV: AJAX and Beyond; Chapter 17: JavaScript and XML; 17.1 Using XML with JavaScript; 17.2 A Preview of Things to Come; 17.3 Exercises; Chapter 18: A Touch of AJAX; 18.1 Introduction to AJAX; 18.2 The XMLHttpRequest Object; 18.3 Case Study: Live Searching and Updating; 18.4 Exercises; Chapter 19: A Bit Deeper into AJAX; 19.1 Creating an HTML Table with XML and CSS; 19.2 Styling the Table with CSS; 19.3 Creating a Dynamic Drop-down Box; 19.4 Accepting Input from the User and AJAX; 19.5 Exercises; Answer Key to Exercises; Chapter 1; Chapter 2; Chapter 3; Chapter 4; Chapter 5; Chapter 6; Chapter 7; Chapter 8; Chapter 9; Chapter 10; Chapter 11; Chapter 12; Chapter 13; Chapter 14; Chapter 15; Chapter 16; Chapter 17; Chapter 18; Chapter 19;