Book description
If you're new to JavaScript, or an experienced web developer looking to improve your skills, Learning JavaScript provides you with complete, no-nonsense coverage of this quirky yet essential language for web development. You'll learn everything from primitive data types to complex features, including JavaScript elements involved with Ajax and dynamic page effects. By the end of the book, you'll be able to work with even the most sophisticated libraries and web applications.
Complete with best practices and examples of JavaScript use, this new edition shows you how to integrate the language with the browser environment, and how to practice proper coding techniques for standards-compliant websites. This book will help you:
- Learn the JavaScript application structure, including basic statements and control structures
- Identify JavaScript objects—String, Number, Boolean, Function, and more
- Use browser debugging tools and troubleshooting techniques
- Understand event handling, form events, and JavaScript applications with forms
- Develop with the Browser Object Model, the Document Object Model, and custom objects you create
- Learn about browser cookies and more modern client-side storage techniques
- Get details for using XML or JSON with Ajax applications
Publisher resources
Table of contents
- Learning JavaScript
- A Note Regarding Supplemental Files
- Preface
- 1. Hello JavaScript!
- 2. JavaScript Data Types and Variables
- 3. Operators and Statements
- 4. The JavaScript Objects
- 5. Functions
- 6. Troubleshooting, Debugging, and Cross-Browser Issues
- 7. Catching Events
- 8. Forms, Form Events, and Validation
- 9. Browser As Puzzle Box
- 10. Cookies and Other Client-Side Storage Techniques
- 11. The DOM, or Web Page As Tree
- 12. Dynamic Pages
-
13. Creating Custom JavaScript Objects
- The JavaScript Object and Prototyping
- Creating Your Own Custom JavaScript Objects
- Object Encapsulation
- Chaining Constructors and JavaScript Inheritance
- One-Off Objects
- Object Libraries: Packaging Your Objects for Reuse
- Advanced Error Handling Techniques (try, throw, catch)
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- 14. Moving Outside the Page with Ajax
- 15. Ajax Data: XML or JSON?
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Learning JavaScript, 2nd Edition
- Author(s):
- Release date: December 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596521875
You might also like
book
Learning JavaScript, 3rd Edition
This is an exciting time to learn JavaScript. Now that the latest JavaScript specification—ECMAScript 6.0 (ES6)—has …
book
Learning JavaScript
As web browsers have become more capable and standards compliant, JavaScript has grown in prominence. JavaScript …
book
JavaScript Absolute Beginner's Guide, 2nd Edition
Who knew how simple using JavaScript could be? Make the most of JavaScript--even if you've never …
book
Learning JavaScript Design Patterns
With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by …