Create bookmark
The book of JavaScript
a practical guide to interactive Web pages
Notes
Please login to add notes
- Brief Contents
- Contents in Detail
- Foreword
- Foreword to the First Edition
- Acknowledgments
- + Introduction
- + Welcome to JavaScript!
- + Using Variables and Built-in Functions to Update Your Web Pages Automatically
- + Giving the Browsers What They Want
-
+
Working with Rollovers
-
+
Opening and Manipulating Windows
- Real-World Examples of Opening Windows to Further Information
- Working with Windows as Objects
- + Opening Windows
- Closing Windows
- Using the Right Name: How Windows See Themselves and Each Other
- Moving Windows to the Front or Back of the Screen
- + Window Properties
- + More Window Methods
- Summary
- Assignment
-
+
Writing Your Own JavaScript Functions
-
+
Providing and Receiving Information with Forms
- Real-World Examples of Forms
- + Form Basics
- + Forms and JavaScript
- + Reading and Setting Form Elements
- Handling Events Using Form Elements
- Make this a Shortcut
- Using Pull-Down Menus as Navigational Tools
- One Last Forms Shortcut
- How the Doctors Without Borders Pull-Down Navigation Tool Works
- Summary
- Assignment
-
+
Keeping Track of Information with Arrays and Loops
- Real-World Examples of Arrays
- JavaScript’s Built-In Arrays
- Figuring Out How Many Items an Array Contains
- Going Through Arrays
- + while Loops
- for Loops
- + How AntWeb Checks Off All the Checkboxes
- + Creating Your Own Arrays
- + How the Book of JavaScript Tip Box Works
- Loops Can Nest
- Creating Arrays As You Go Along
- + Associative Arrays
- Summary
- Assignment
-
+
Timing Events
- Real-World Examples of Timing Events
- Setting an Alarm with setTimeout()
- + Canceling an Alarm with clearTimeout()
- + Repeating Timed Actions
- + Building a Clock with Timing Loops
- How the Book of JavaScript Website’s Timer Works
- + How Space.com’s Countdown Script Works
- + A Timed Slide Show
- + A Safer Version of rotateImage()
- Summary
- Assignment
-
+
Using Frames and Image Maps
-
+
Validating Forms, Massaging Strings, and Working with Server-Side Programs
-
+
Saving Visitor Information with Cookies
- + Dynamic HTML
-
+
Ajax Basics
-
+
XML in JavaScript and Ajax
-
+
Server-Side Ajax
- Real-World Examples of Server-Side Ajax
- The Power of Webservers
- A Server-Side Programming Language
- PHP Basics
- + Sending Simple Input to PHP with a GET Request
- + Creating a Google Suggest Application with an Ajax GET Request
- + Ajax and the POST Method
- + HEAD Requests: Getting Information About a Server-Side File
- The Caching Problem
- + File Handling in PHP
- When Communication Breaks Down
- + Automatically Updating a Web Page When a Server-Side File Changes
- Summary
- Assignment
-
+
Putting It All Together in a Shared To Do List
-
+
Debugging JavaScript and Ajax
-
+
Answers to Assignments
-
+
Resources
-
+
Reference to JavaScript Objects and Functions
- alert() [FF, IE 3]
- + Anchor
- + Applet
- Area [FF, IE 3]
- + Array [FF, IE 3]
- + Button (Including Submit and Reset Buttons)
- + Checkbox
- clearInterval() [FF, IE 4]
- clearTimeout() [FF, IE 3]
- confirm() [FF, IE 3]
- + Date
- + Document
- elements[] [FF, IE 3]
- escape() [FF, IE 3]
- eval() [FF, IE 3]
- + Event
- + FileUpload
- + Form
- + Hidden
- + History
- + HTMLElement [FF, IE 4]
- + Image
- isNaN() [FF, IE 4]
- Link
- + Location
- + Math [FF, IE 3]
- + Navigator
- + Number
- + Option
- parseInt() [FF, IE 3]
- parseFloat() [FF, IE 3]
- + Password
- prompt()
- + Radio
- Reset
- + Screen
- + Select
- setInterval() [FF, IE 4]
- setTimeout() [FF, IE 3]
- + String
- + Style [FF, IE 4]
- Submit
- Text
- + Textarea
- this [FF, IE 3]
- unescape() [FF, IE 3]
- var [FF, IE 3]
- + window
- + XMLHttpRequest [FF] and ActiveXObject("Microsoft.XMLHTTP") [IE 5.5]
- + Chapter 15’s Italian Translator and Chapter 17’s To Do List Application
- Index
- Updates
With JavaScript, you can add interactivity, animation, and other tricks to your web pages quickly. But this isn't just a book of scripts for you to cut and paste into your HTML, only to find out later that nothing works as you'd expected. Using real-world examples as the starting point, author thau! walks you step by step through various scripts and explains how they produce the effects you want.
Because no discussion of JavaScript today is complete without coverage of Ajax, this thoroughly updated second edition includes new chapters on Ajax, so you can get up to speed with this valuable method for creating truly dynamic web pages. This second edition of the best-selling The Book of JavaScript also features revised appendices and new examples throughout to reflect today's web environment. Inside, you'll learn to:
* Work with frames, forms, cookies, and alarms
* Use events to react to a user's actions
* Perform image swaps and rollovers
* Program your own functions to produce customized solutions
* Store user preferences and build a shopping cart
* Use Dynamic HTML to turn web pages into multimedia applications
If you need to spruce up tired-looking pages, The Book of JavaScript, 2nd Edition will help take your site from bland to brilliant.
BONUS: Includes a complete reference to all JavaScript objects and functions, including examples, properties, methods, handlers, and browser compatibility!
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > JavaScript
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 680

