Books & Videos

Table of Contents

  1. Chapter 1 Introduction and First Looks

    1. Twisted History: Specs and Implementations

    2. Cross-Browser Incompatibility and Other Common JavaScript Myths

    3. What You Can Do with JavaScript

    4. First Look at JavaScript: “Hello World!”

    5. The JavaScript Sandbox

    6. Accessibility and JavaScript Best Practices

  2. Chapter 2 JavaScript Data Types and Variables

    1. Identifying Variables

    2. Scope

    3. Simple Types

    4. Constants: Named but Not Variables

    5. Questions

  3. Chapter 3 Operators and Statements

    1. Format of a JavaScript Statement

    2. Simple Statements

    3. Conditional Statements and Program Flow

    4. The Conditional Operators

    5. The Logical Operators

    6. Advanced Statements: The Loops

    7. Questions

  4. Chapter 4 The JavaScript Objects

    1. The Object Constructor

    2. The Number Object

    3. The String Object

    4. Regular Expressions and RegExp

    5. Purposeful Objects: Date and Math

    6. JavaScript Arrays

    7. Associative Arrays: The Arrays That Aren’t

    8. Questions

  5. Chapter 5 Functions

    1. Defining a Function: Let Me Count the Ways

    2. Callback Functions

    3. Functions and Recursion

    4. Nested Functions, Function Closure, and Memory Leaks

    5. Function As Object

    6. Questions

  6. Chapter 6 Catching Events

    1. The Event Handler at DOM Level 0

    2. Questions

  7. Chapter 7 Forms and JiT Validation

    1. Accessing the Form

    2. Attaching Events to Forms: Different Approaches

    3. Selection

    4. Radio Buttons and Checkboxes

    5. Input Fields and JiT Regular Expressions

    6. Questions

  8. Chapter 8 The Sandbox and Beyond: Cookies, Connectivity, and Piracy

    1. The Sandbox

    2. All About Cookies

    3. Alternative Storage Techniques

    4. Cross-Site Scripting (XSS)

    5. Questions

  9. Chapter 9 The Basic Browser Objects

    1. BOM at a Glance

    2. The window Object

    3. Frames and Location

    4. history, screen, and navigator

    5. The all Collection, Inner/Outer HTML and Text, and Old and New Documents

    6. Something Old, Something New

    7. Questions

  10. Chapter 10 DOM: The Document Object Model

    1. A Tale of Two Interfaces

    2. The DOM and Compliant Browsers

    3. The DOM HTML API

    4. Understanding the DOM: The Core API

    5. The DOM Core Document Object

    6. Element and Access in Context

    7. Modifying the Tree

    8. Questions

  11. Chapter 11 Creating Custom JavaScript Objects

    1. The JavaScript Object and Prototyping

    2. Creating Your Own Custom JavaScript Objects

    3. Object Detection, Encapsulation, and Cross-Browser Objects

    4. Chaining Constructors and JS Inheritance

    5. One-Off Objects

    6. Advanced Error-Handling Techniques (try, throw, catch)

    7. What’s New in JavaScript

    8. Questions

  12. Chapter 12 Building Dynamic Web Pages: Adding Style to Your Script

    1. DHTML: JavaScript, CSS, and DOM

    2. Fonts and Text

    3. Position and Movement

    4. Size and Clipping

    5. Display, Visibility, and Opacity

    6. Questions

  13. Chapter 13 Moving Outside the Page with Ajax

    1. Ajax: It’s Not Only Code

    2. How Ajax Works

    3. Hello Ajax World!

    4. The Ajax Object: XMLHttpRequest and IE’s ActiveX Objects

    5. Working with XML—or Not

    6. Google Maps

    7. Questions

  14. Chapter 14 Good News: Juicy Libraries! Amazing Web Services! Fun APIs!

    1. Before Jumping In, A Word of Caution

    2. Working with Prototype

    3. Script.aculo.us: More Than the Sum of Its Periods

    4. Sabre’s Rico

    5. Dojo

    6. The Yahoo! UI

    7. MochiKit

    8. Questions

  1. Appendix Answers

    1. Chapter 2

    2. Chapter 3

    3. Chapter 4

    4. Chapter 5

    5. Chapter 6

    6. Chapter 7

    7. Chapter 8

    8. Chapter 9

    9. Chapter 10

    10. Chapter 11

    11. Chapter 12

    12. Chapter 13

    13. Chapter 14