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
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
Begin to Code with JavaScript
Become a JavaScript programmerand have fun doing it! Start writing software that solves real problems, even …
book
Learn to Code With JavaScript
A hands-on, practical Introduction to coding! Do you want to learn to code? Perhaps you want …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
You Don't Know JS: Up & Going
It’s easy to learn parts of JavaScript, but much harder to learn it completely—or even sufficiently—whether …