search for books and compare prices
Tables of Contents for Practical Javascript for the Usable Web
Chapter/Section Title
Page #
Page Count
Introduction
1
1
Style Conventions
2
1
Support/Feedback
3
1
Web Support
3
2
Getting Started with JavaScript
5
16
What is JavaScript?
6
5
What Can JavaScript Do for Us?
6
2
The Advantages and Disadvantages of JavaScript
8
3
JavaScript in a Web Page
11
4
JavaScript Syntax
12
2
Code Execution
14
1
Objects
15
2
Simple JavaScript Example
17
4
Data and Decisions
21
38
Data, Data Types, and Data Operators
22
10
The String Data Type
22
2
Data Operators
24
3
JavaScript Variables
27
2
Converting Different Types of Data
29
3
The Composite Data Types: Array and Object
32
7
The String, Date, and Math Objects
32
7
Arrays
39
5
The Array Object's Methods and Properties
42
2
Making Decisions in JavaScript
44
15
The Logical and Comparison Operators
44
3
Conditional Statements
47
3
Checking a Number of Conditions: the Switch Statement
50
2
Repeating Things: Loops
52
7
Functions and Code Design
59
30
Functions
59
10
Creating a Function
60
2
Using Functions
62
7
Good Coding Practice
69
8
Code Layout
70
1
Comment Code
71
1
Use Descriptive Names
72
1
Simplify Conditions
72
1
Keep the Number of Exit Points to a Minimum
73
1
Use Variables for Special Values
74
1
Keep Related Code Together
75
1
Minimize Variable Scope
76
1
Use Variables for Just One Purpose
76
1
Remove Unused Variables
76
1
Functions Should Do One Thing and Do it Well
76
1
Organizing and Reusing Code
77
12
Creating Code Modules with js Files
78
2
Creating our own Objects with JavaScript Classes
80
9
Interacting with the Web Browser
89
36
Browser Objects
89
4
Modifying our Page with JavaScript
93
17
Changing the Page as it Downloads
93
1
Changing the Page after it has Downloaded
94
1
Swapping Images
95
5
Dynamically Changing Links
100
2
Accessing Forms
102
8
Reacting to Events
110
11
Window Events
111
2
Document Events
113
1
HTML Elements and Events
114
7
Checking the User's Browser
121
4
Browser Detection
121
1
Object Detection
122
3
Windows and Frames
125
38
Basic Built-In Dialog Windows
125
4
The Alert Dialog
126
1
The Confirm Dialog
127
1
The Prompt Dialog
127
2
Creating New Browser Windows
129
14
Communicating Between Windows
138
1
Closing Windows
139
2
Custom Dialog Windows
141
2
Windows within Windows
143
9
Documents within Documents
143
2
Multiple Windows within Window
145
1
Framesets
146
1
Frameset Hierarchy
147
1
Accessing frames
148
2
Complex Framesets
150
2
Image Viewer Application - Part 1
152
11
Application Outline
153
1
Building the Application
154
1
Stylizing the Application
155
1
Preventing JavaScript Errors
156
1
Allowing for Smaller Screens
156
1
Navigation System
157
6
DHTML for IE4 and NN4
163
30
The Need for Cascading Style Sheets (CSS)
164
2
What is CSS?
166
2
Manipulating CSS with JavaScript
168
6
DHTML in IE 4
169
3
DHTML in NN4
172
2
Writing Cross-Browser DHTML
174
5
The Difficulties with Cross-Browser DHTML
175
3
Technique 1: Using document all Collection Test
178
1
Technique 2: Using the document layers Collection Test
178
1
Technique 3: Using a Browser Sniffer
178
1
ImageViewer: Part II: Adding DHTML and CSS
179
14
Applying CSS/CSSP Stylesheets
179
3
Applying DHTML
182
6
Back to the Main Page
188
5
The DOM: DHTML for the Latest Browsers
193
44
Overview of the DOM
194
1
DOM Structure
195
15
DOM Interfaces
197
2
Accessing Parts of a Document
199
1
Accessing Elements
199
3
Traversing the Document Structure
202
2
Identifying Nodes
204
2
Manipulating the Document
206
1
Mutating the Document Structure
207
1
Creating New Nodes
208
1
Modifying Attributes
209
1
DOM Compatibility
210
3
Importing XML Documents
213
7
DOM Event Model
220
10
Event Binding
221
2
Choosing an Event Binding Method
223
1
The Event Object
224
2
Canceling Event Propagation
226
4
Image Viewer Application - Part 3
230
7
Thumbnail HTML Page Template
231
1
Event Binding for the Thumbnail Pages
232
5
Advanced Form Techniques
237
38
Advanced Forms
237
19
Adding Elements to a Select Control
237
5
Creating Your Own Controls with DTHML
242
14
The E-commerce Image Viewer - Part 1
256
11
Interface Changes
256
6
Code Changes
262
5
Regular Expressions
267
8
Passing Information Between Web Pages and Data Storage
275
64
Keeping Information Alive
275
9
Passing Information with URLs
276
6
Maintaining State with Session Variables
282
2
Permanently Storing Information: Cookies
284
15
Reading and Writing Cookies
285
3
Making Cookies Easy: Cookie Functions
288
11
The E-commerce Image Viewer Application - Part 2
299
40
Creating the Shopping Cart Classes
300
21
Using the Classes
321
18
Data Validation Techniques
339
38
Validation of Different Types of Information
339
21
Validating Characters
340
2
Validating Numbers
342
5
Validating a Postal Code
347
1
Validating an E-mail Address
348
2
Validating Dates
350
3
Validating a Credit Card Number
353
7
Image Viewer E-commerce Application - Part 3
360
17
Adding Automatic Form Validation
360
12
Updating the Personal Details Page
372
1
Updating the Credit Card Details Page
372
5
Index
377
<