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
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.
Synopsis
Bestselling author McFarland teaches how to use JavaScript in sophisticated ways--even for those with little or no programming experience--with this clear and entertaining book that offers step-by-step tutorials.
Synopsis
JavaScript is an essential language for creating modern, interactive websites, but its complex rules challenge even the most experienced web designers. With JavaScript: The Missing Manual, you'll quickly learn how to use JavaScript in sophisticated ways -- without pain or frustration -- even if you have little or no programming experience.
JavaScript expert David McFarland first teaches you the basics by having you build a simple program. Then you'll learn how to work with jQuery, a popular library of pre-built JavaScript components that's free and easy to use. With jQuery, you can quickly build modern, interactive web pages -- without having to script everything from scratch!
- Learn how to add scripts to a web page, store and manipulate information, communicate with the browser window, respond to events like mouse clicks and form submissions, and identify and modify HTML
- Get real-world examples of JavaScript in action
- Learn to build pop-up navigation bars, enhance HTML tables, create an interactive photo gallery, and make web forms more usable
- Create interesting user interfaces with tabbed panels, accordion panels, and pop-up dialog boxes
- Learn to avoid the ten most common errors new programmers make, and how to find and fix bugs
- Use JavaScript with Ajax to communicate with a server so that your web pages can receive information without having to reload
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 languageone 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 JavaScriptand 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 OReilly Medias Digital Distribution services. To download this content, please visit OReillys 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
David Sawyer McFarland is president of Sawyer McFarland Media, Inc., a Web development and training company in Portland, Oregon. He's been building websites since 1995, when he designed an online magazine for communication professionals. He's served as webmaster at the University of California at Berkeley and the Berkeley Multimedia Research Center, and oversaw a complete CSS-driven redesign of Macworld.com. David is also a writer and trainer, and teaches in the Portland State University multimedia program. He wrote the bestselling Missing Manual titles on Adobe Dreamweaver, CSS, and JavaScript.
Table of Contents
; Acknowledgements; Introducing JavaScript Step by Step, Second Edition; Who Should Read This Book?; Features and Conventions of This Book; Whats in the Companion Content; Downloading the Companion Content; Minimum System Requirements; Getting Help; Getting Help with This Book and the Companion Content; 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 Whats in a JavaScript Program?; 1.3 JavaScript Placement on Your Webpage; 1.4 What JavaScript Can Do; 1.5 What JavaScript Cant Do; 1.6 Tips for Using JavaScript; 1.7 Whats New in ECMAScript Version 5?; 1.8 Exercises; Chapter 2: Developing in JavaScript; 2.1 JavaScript Development Options; 2.2 Configuring Your Environment; 2.3 Writing JavaScript with Visual Studio 2010; 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 JavaScripts New Strict Mode; 3.6 Exercises; Chapter 4: Working with Variables and Data Types; 4.1 Data Types in JavaScript; 4.2 Defining and Using Variables; 4.3 Using the RegExp Object; 4.4 Learning About Type Conversions; 4.5 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 The Comma Operator; 5.10 Exercises; Applying JavaScript; Chapter 6: Controlling Flow with Conditionals and Loops; 6.1 If (and How); 6.2 Using else if and else Statements; 6.3 Working with Ternary Conditionals; 6.4 Testing with switch; 6.5 Looping with while; 6.6 Using for Loops; 6.7 Validating Forms with Conditionals; 6.8 Exercises; Chapter 7: Working with Functions; 7.1 Whats 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 Finding Out More About Arrays; 8.4 Taking Advantage of 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; Integrating JavaScript into Design; 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; Chapter 11: JavaScript Events and the Browser; 11.1 Understanding Window Events; 11.2 Detecting Visitor Information; 11.3 Opening, Closing, and Resizing Windows; 11.4 Timers; 11.5 Exercises; Chapter 12: Creating and Consuming Cookies; 12.1 Understanding 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: Using JavaScript with Web Forms; 14.1 JavaScript and Web Forms; 14.2 Obtaining Form Data; 14.3 Working with Form Information; 14.4 Prevalidating Form Data; 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 Introducing Two Ways to Handle Errors; 16.2 Using try/catch; 16.3 Using the onerror Event; 16.4 Exercises; AJAX and Server-Side Integration; Chapter 17: JavaScript and XML; 17.1 Using XML with JavaScript; 17.2 Working with XML Data from Excel 2007; 17.3 A Preview of Things to Come; 17.4 Exercises; Chapter 18: JavaScript Applications; 18.1 Components of JavaScript Applications; 18.2 JavaScript and Web Interfaces; Chapter 19: A Touch of AJAX; 19.1 Introduction to AJAX; 19.2 The XMLHttpRequest Object; 19.3 Case Study: Live Searching and Updating; 19.4 Exercises; Chapter 20: A Bit Deeper into AJAX; 20.1 Creating an HTML Table with XML and CSS; 20.2 Styling the Table with CSS; 20.3 Creating a Dynamic Drop-Down Box; 20.4 Accepting Input from the User and AJAX; 20.5 Exercises; jQuery; Chapter 21: An Introduction to JavaScript Libraries and Frameworks; 21.1 Understanding Programming Libraries; 21.2 Definiiiiiing Your Own JavaScript Library; 21.3 Looking at Popular JavaScript Libraries and Frameworks; 21.4 Exercises; Chapter 22: An Introduction to jQuery; 22.1 jQuery Primer; 22.2 Using jQuery; 22.3 Using Selectors; 22.4 Functions; 22.5 Events; 22.6 AJAX and jQuery; 22.7 More jQuery; 22.8 Exercises; Chapter 23: jQuery Effects and Plug-Ins; 23.1 Core Features for Enhancing Usability; 23.2 jQuery UI; 23.3 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; Chapter 20; Chapter 21; Chapter 22; Chapter 23; About the Author;