Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Praise for Javascript® Bible
Title Page
Copyright
Dedication
About the Authors
Credits
Acknowledgments
Introduction
Organization and Features of This Edition
Prerequisites to Learning JavaScript
Formatting and Naming Conventions
Part I: Getting Started with JavaScript
Chapter 1: JavaScript's Role in the World Wide Web and Beyond
Competing for Web Traffic
Other Web Technologies
JavaScript: A Language for All
JavaScript: The Right Tool for the Right Job
Chapter 2: Developing a Scripting Strategy
Browser Leapfrog
Duck and Cover
Compatibility Issues Today
Developing a Scripting Strategy
Chapter 3: Selecting and Using Your Tools
The Software Tools
Setting Up Your Authoring Environment
Validate, Validate, Validate
Creating Your First Script
Chapter 4: JavaScript Essentials
Combining JavaScript with HTML
Designing for Compatibility
Language Essentials for Experienced Programmers
Part II: JavaScript Tutorial
Chapter 5: Your First JavaScript Script
What Your First Script Will Do
Entering Your First Script
Have Some Fun
Exercises
Chapter 6: Browser and Document Objects
Scripts Run the Show
When to Use JavaScript
The Document Object Model
When a Document Loads
Object References
Node Terminology
What Defines an Object?
Exercises
Chapter 7: Scripts and HTML Documents
Connecting Scripts to Documents
JavaScript Statements
When Script Statements Execute
Viewing Script Errors
Scripting versus Programming
Exercises
Chapter 8: Programming Fundamentals, Part I
What Language Is This?
Working with Information
Variables
Expressions and Evaluation
Data Type Conversions
Operators
Exercises
Chapter 9: Programming Fundamentals, Part II
Decisions and Loops
Control Structures
Repeat Loops
Functions
Curly Braces
Arrays
Exercises
Chapter 10: Window and Document Objects
Top-Level Objects
The window Object
window Properties and Methods
The location Object
The navigator Object
The document Object
Exercises
Chapter 11: Forms and Form Elements
The Form object
Form Controls as Objects
Passing Elements to Functions with this
Submitting and Prevalidating Forms
Exercises
Chapter 12: Strings, Math, and Dates
Core Language Objects
String Objects
The Math Object
The Date Object
Date Calculations
Exercises
Chapter 13: Scripting Frames and Multiple Windows
Frames: Parents and Children
References Among Family Members
Frame-Scripting Tips
About iframe Elements
Highlighting Footnotes: A Frameset Scripting Example
References for Multiple Windows
Exercises
Chapter 14: Images and Dynamic HTML
The Image Object
Rollovers Without Scripts
The javascript: Pseudo-URL
Popular Dynamic HTML Techniques
Exercises
Part III: JavaScript Core Language Reference
Chapter 15: The String Object
String and Number Data Types
String Object
String Utility Functions
URL String Encoding and Decoding
Chapter 16: The Math, Number, and Boolean Objects
Numbers in JavaScript
Math Object
Number Object
Boolean Object
Chapter 17: The Date Object
Time Zones and GMT
The Date Object
Validating Date Entries in Forms
Chapter 18: The Array Object
Structured Data
Creating an Empty Array
Populating an Array
JavaScript Array Creation Enhancements
Deleting Array Entries
Parallel Arrays
Multidimensional Arrays
Simulating a Hash Table
Array Object
Array Comprehensions
Destructuring Assignment
Compatibility with Older Browsers
Chapter 19: JSON—Native JavaScript Object Notation
How JSON Works
Sending and Receiving JSON Data
JSON Object
Security Concerns
Chapter 20: E4X—Native XML Processing
XML
ECMAScript for XML (E4X)
Chapter 21: Control Structures and Exception Handling
If and If…Else Decisions
Conditional Expressions
The switch Statement
Repeat (for) Loops
The while Loop
The do-while Loop
Looping through Properties (for-in)
The with Statement
Labeled Statements
Exception Handling
Using try-catch-finally Constructions
Throwing Exceptions
Error Object
Chapter 22: JavaScript Operators
Operator Categories
Comparison Operators
Connubial Operators
Miscellaneous Operators
Operator Precedence
Chapter 23: Function Objects and Custom Objects
Function Object
Function Application Notes
Creating Your Own Objects with Object-Oriented JavaScript
Object-Oriented Concepts
Object Object
Chapter 24: Global Functions and Statements
Functions
Statements
WinIE Objects
Part IV: Document Objects Reference
Chapter 25: Document Object Model Essentials
The Object Model Hierarchy
How Document Objects Are Born
Object Properties
Object Methods
Object Event Handlers
Object Model Smorgasbord
Basic Object Model
Basic Object Model Plus Images
Navigator 4–Only Extensions
Internet Explorer 4+ Extensions
Internet Explorer 5+ Extensions
The W3C DOM
Chapter 26: Generic HTML Element Objects
Generic Objects
Chapter 27: Window and Frame Objects
Window Terminology
Frames
window Object
frameset Element Object
iframe Element Object
popup Object
Chapter 28: Location and History Objects
location Object
history Object
Chapter 29: Document and Body Objects
document Object
body Element Object
TreeWalker Object
Chapter 30: Link and Anchor Objects
Anchor, Link, and a Element Objects
Chapter 31: Image, Area, Map, and Canvas Objects
Image and img Element Objects
area Element Object
map Element Object
canvas Element Object
Chapter 32: Event Objects
Why “Events”?
Event Propagation
Dueling Event Models
Event Types
NN6+/Moz event Object
Part V: Appendixes
Appendix A: JavaScript and Browser Objects Quick Reference
Appendix B: What's on the CD-ROM
Index
Advertisement
Part VI: Document Objects Reference (continued)
Chapter 33: Body Text Objects
blockquote and q Element Objects
br Element Object
font Element Object
h1…h6 Element Objects
hr Element Object
label Element Object
marquee Element Object
Range Object
selection Object
Text and TextNode Objects
TextRange Object
TextRectangle Object
Chapter 34: The Form and Related Objects
The Form in the Object Hierarchy
form Object
fieldset and legend Element Objects
label Element Object
Scripting and Web Forms 2.0
Chapter 35: Button Objects
The button Element Object, and the Button, Submit, and Reset Input Objects
checkbox Input Object
radio Input Object
image Input Object
Chapter 36: Text-Related Form Objects
Text Input Object
password Input Object
hidden Input Object
textarea Element Object
Chapter 37: Select, Option, and FileUpload Objects
select Element Object
option Element Object
optgroup Element Object
file Input Element Object
Chapter 38: Style Sheet and Style Objects
Making Sense of the Object Names
Imported Style Sheets
Reading Style Properties
style Element Object
styleSheet Object
cssRule and rule Objects
currentStyle, runtimeStyle, and style Objects
filter Object
Chapter 39: Ajax, E4X, and XML
Elements and Nodes
xml Element Object
XMLHttpRequest Object
ECMAScript for XML (E4X)
Chapter 40: HTML Directive Objects
HTML Element Object
head Element Object
base Element Object
link Element Object
meta Element Object
script Element Object
title Element Object
Chapter 41: Table and List Objects
The Table Object Family Hierarchy
table Element Object
tbody, tfoot, and thead Element Objects
caption Element Object
col and colgroup Element Objects
tr Element Object
td and th Element Objects
ol Element Object
ul Element Object
li Element Object
dl, dt, and dd Element Objects
dir and menu Element Objects
Chapter 42: The Navigator and Other Environment Objects
clientInformation Object (IE4+) and navigator Object (All)
mimeType Object
plugin Object
Looking for mime Types and Plug-Ins
screen Object
userProfile Object
Chapter 43: Positioned Objects
What Is a Layer?
Positioned Elements in the Modern DOM
Chapter 44: Embedded Objects
applet Element Object
object Element Object
embed Element Object
The Odd Case of the param Element
Chapter 45: The Regular Expression and RegExp Objects
Regular Expressions and Patterns
Language Basics
Object Relationships
Using Regular Expressions
Regular Expression Object
RegExp Object
Part VII: More JavaScript Programming
Chapter 46: Data-Entry Validation
Real-Time Versus Batch Validation
Designing Filters
Building a Library of Filter Functions
Combining Validation Functions
Date and Time Validation
An Industrial-Strength Validation Solution
Plan for Data Validation
Chapter 47: Scripting Java Applets and Plug-Ins
NPAPI Overview
Why Control Java Applets?
A Little Java
Scripting Applets in Real Life
Applet-to-Script Communication
Scripting Plug-Ins
Scripting Java Classes Directly
Chapter 48: Debugging Scripts
Syntax versus Runtime Errors
Error Message Notification
Error Message Details
Warnings in Mozilla's Console
Sniffing Out Problems
Debugging Tools
A Simple Trace Utility
Browser Crashes
Preventing Problems
Testing Your Masterpiece
Chapter 49: Security and Netscape Signed Scripts
Battening Down the Hatches
When Worlds Collide
The Java Sandbox
Security Policies
The Same Origin Policy
The Netscape Signed Script Policy
The Digital Certificate
Signing Scripts
Accessing Protected Properties and Methods
Chapter 50: Cross-Browser Dynamic HTML Issues
What Is DHTML?
Striving for Compatibility
Working Around Incompatibilities
A DHTML API Example
Chapter 51: Internet Explorer Behaviors
Style Sheets for Scripts
Embedding Behavior Components
Component Structure
Behavior Examples
For More Information
Part VIII: Applications
Chapter 52: Application: Tables and Calendars
About the Calendars
Static Tables
Dynamic Tables
Hybrids
Dynamic HTML Tables
Further Thoughts
Chapter 53: Application: A Lookup Table
A Server-Less Database
The Database
The Implementation Plan
The Code
Further Thoughts
Chapter 54: Application: A Poor Man's Order Form
Defining the Task
The Form Design
Form HTML and Scripting
Further Thoughts
Chapter 55: Application: Outline-Style Table of Contents
The Implementation Plan
The Code
An Ajax (XML) Outline
Further Thoughts
Chapter 56: Application: Calculations and Graphics
The Calculation
User Interface Ideas
The Code
Further Thoughts
Chapter 57: Application: Intelligent “Updated” Flags
The Cookie Conundrum
Time's Not on Your Side
The Application
The Code
Further Thoughts
Chapter 58: Application: Decision Helper
The Application
The Design
The Files
The Code
Further Thoughts
Chapter 59: Application: Cross-Browser DHTML Map Puzzle
The Puzzle Design
Implementation Details
Further Thoughts
Chapter 60: Application: Transforming XML Data
Application Overview
Implementation Plan
The Code
Further Thoughts
Chapter 61: Application: Creating Custom Google Maps
A Google Maps Primer
Google Maps Customization Basics
Designing a Google Maps Mashup
Developing a Custom Map Document
Hacking Together a Custom Google Map
Further Thoughts
Part IX: Appendixes (continued)
Appendix C: JavaScript Reserved Words
Appendix D: Answers to Tutorial Exercises
Appendix E: JavaScript and DOM Internet Resources
Wiley Publishing, Inc. End-User License Agreement
← Prev
Back
Next →
← Prev
Back
Next →