Buying Options
Learning JavaScript
Safari Books Online
Add to Cart
What is this?

Product Editions

Please consider the latest edition.

  1. Learning JavaScript, Second Edition - December 2008
  2. Learning JavaScript - October 2006
Description
Using the latest examples from modern browser development practices, Learning JavaScript teaches you how to integrate the language with the browser environment, and how to practice proper coding techniques for standards-compliant web sites. By the end of the book, you'll be able to use all of the JavaScript language and many of the object models provided by web browsers, and you'll even be able to create a basic Ajax application.
Full Description
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 1 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

View Full Table of Contents
Product Details
Title:
Learning JavaScript
By:
Shelley Powers
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
October 2006
Pages:
352
Print ISBN:
978-0-596-52746-4
| ISBN 10:
0-596-52746-2
Customer Reviews
Colophon

The animal on the cover of Learning JavaScript is a baby black, or hook-lipped, rhinoceros (Diceros bicornis). The black rhino is one of two African species of rhinos. Weighing up to one and a half tons, it is smaller than its counterpart--the white, or square-lipped, rhinoceros. Black rhinos live in savanna grasslands, open woodlands, and mountain forests in a few small areas of southwestern, south central, and eastern Africa. They prefer to live alone and will aggressively defend their territory.
With an upper lip that tapers to a hooklike point, the black rhino is perfectly suited to pluck leaves, twigs, and buds from trees and bushes. It is able to eat coarser vegetation than other herbivores.
Black rhinos are odd-toed ungulates, meaning they have three toes on each foot. They have thick, gray, hairless hides. Among the most distinctive of the rhino's features is its two horns, which are actually made of thickly matted hair rather than bone. The rhino uses its horns to defend itself against lions, tigers, and hyenas, or to claim a female mate. The courtship ritual is often violent, and the horns can inflict severe wounds.
After mating, the female and male rhinos have no further contact. The gestation period is 14 to 18 months, and the calves nurse for a year, though they are able to eat vegetation almost immediately after birth. The bond between a mother and her calf can last up to four years before the calf leaves its home.
In recent years, rhinos have been hunted to the point of near extinction. Scientists estimate that there may have been as many as a million black rhinos in Africa 100 years ago, a number that has dwindled to 2,400 today. All five remaining species, which include the Indian, Javan, and Sumatran rhinos, are now endangered. Humans are considered their biggest predators.
The cover image is from Cassell's Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The production editors for Learning JavaScript, eMatter Edition were Ellie Cutler and Jeff Liggett. Linda Walsh was the product manager. Kathleen Wilson provided design support. Lenny Muellner, Mike Sierra, Erik Ray, and Benn Salter provided technical support. This eMatter Edition was produced with FrameMaker 5.5.6.

  • Book cover of Learning JavaScript