Book Icon About the Book JavaScript Links Update Links to Plug-ins

JAVASCRIPT DEVELOPER'S RESOURCE

Table of Contents

Acknowledgments xvii

About the Authors xviii

Introduction xix

Part One: The JavaScript Basics

Chapter 1: Javascript and the Internet Application Framework
What Is JavaScript?
A Bit of History
Netscape's Internet Application Framework
Development Components of Navigator 2.0 and 3.0
Developing With JavaScript
JavaScript Is Not Java
A Bit About JavaScript
A Bit About Java
Hello World in JavaScript and Java

Chapter 2: Getting Started With JavaScript
Before We Begin
A Simple Example
How JavaScript Is Loaded and Executed
Introduction to Objects
The <SCRIPT> Tag
The <NOSCRIPT> Tag
Comments, Punctuation, and Special Characters
Using Comments in JavaScript
How to Hide From Other Browsers
Multiple Statements on a Line
Case Sensitivity
Using Single and Double Quotes
Special Characters in JavaScript
JavaScript in HTML Tags
JavaScript Entities

Chapter 3: JavaScript Language Basics
Variables
Statements
Operators
Arithmetic Operators
Bit Operators
Logical Operators
Comparison Operators
String Operations
Operator Precedence
Flow and Loop Control Segments
The if ... else Statement
For and While Looping Constructs
The Break and Continue Statements
The for...in Statement
Functions
A Small Example of Using Functions
Built-in Functions and Objects
String Object
Array Object
Math Object
Date Object
Converting Strings to Integers or
Floating-Point Numbers
The eval( ) Function

Chapter 4: JavaScript and Objects
Using Objects
Creating Objects
More on Methods
Objects Within Objects
Adding New Members
JavaScript Object Model
Variable-Length Parameters
A Word on the Navigator Object

Part Two: The JavaScript Objects

Chapter 5: The History, Location, Link, and Anchor Objects
The History Object
History List Properties and Methods
The Back Button Problem
The Location Object
URL Components
URL Character Encoding
Setting Location Properties
Using the Location Object
for Backward Compatibility
Special Location Protocols
The javascript: protocol
The Link and Anchor Objects
The Resource Toolbar Example

Chapter 6: Events, Input, and Output
What are Events?
Types of Events
The onMouseOver Event Handler
The onClick Event Handlers
The OnChange, OnFocus, OnBlur
Event Handlers
Timed Events
The OnLoad and OnUnload Events
Multiple FORMS on One Page
Handling onSubmit Events
Calling Event Handlers Explicitly

Chapter 7: JavaScript Documents
What's a Document?
Properties of Documents
Color Properties
The Anchors and Links Properties
Other Read-Only Properties
The Forms Property
The cookie property
How to Use Documents
Using Documents and Forms
A Short Point About Focus

Chapter 8: Windows in JavaScript
Window Objects
Creating a Window
Windows Methods
Declaring Frames
Example 1: Using Frames With JavaScript
Example 2: Using Variables for HTML
Example 3: Using FRAMEs and TABLEs
Colored Tables
Tainted Documents

Chapter 9: Applying JavaScript
Handling Images
Using XBM files
Using Image Maps
Using Objects and Frames
Using Cookies

Part Three: Advanced JavaScript: Using LiveConnect and LiveWire

Chapter 10: Working With Plug-Ins
The <EMBED> Tag
MIME Types and Plug-Ins
Plug-Ins in Navigator 2.0
Listing Your Installed Plug-ins
Using JavaScript to Pass Parameters to an <EMBED> Tag
Opening a Stream to a Plug-in
Testing for Plug-ins Using JavaScript
Plug-Ins in Navigator 3.0
The mimeTypes and Plugins Objects
The Refresh Method
Listing Your Installed Plug-ins
Checking For a Particular MIME Type
Multiple Plug-ins Handling the Same MIME Type
Plug-Ins and Browsers Without JavaScript
Using LiveConnect to Control Plug-Ins
How Plug-in Routines are Accessed
Using JavaScript
Two Examples: Controlling LiveAudio

Chapter 11: JavaScript and Java
Before We Begin
Using Java Applets
Accessing Applet Member Variables
Another Example

Chapter 12: An Introduction to Server-Side JavaScript and Livewire
Server-Side Versus
Client-Side
Creating Scripts
Putting Scripts into
HTML Files
The LiveWire Object Framework
Communication Between Client and Server
Communicating With the Request Object
Communicating With the Client Object
Communicating With the Project and Server Objects
Executing Scripts
An Example of Server-Side JavaScript
The User Interface
Server-Side JavaScript
Other Files
Compiling Our Project
Managing the Application With LiveWire
Using Databases With JavaScript
The Database Object
Other Database Features


[Cover][Table of Contents][About the book][JavaScript links][Updates][Ordering Info]

Home



© Prentice-Hall, Inc.
A Simon & Schuster Company
Upper Saddle River, New Jersey 07458

Legal Statement