search for books and compare prices
Tables of Contents for Practical Javascript for the Usable Web
Getting Started with JavaScript
5
16
What Can JavaScript Do for Us?6
2
The Advantages and Disadvantages of JavaScript8
3
JavaScript in a Web Page
11
4
JavaScript Syntax12
2
Code Execution14
1
Simple JavaScript Example
17
4
Data, Data Types, and Data Operators
22
10
The String Data Type22
2
Data Operators24
3
JavaScript Variables27
2
Converting Different Types of Data29
3
The Composite Data Types: Array and Object
32
7
The String, Date, and Math Objects32
7
The Array Object's Methods and Properties42
2
Making Decisions in JavaScript
44
15
The Logical and Comparison Operators44
3
Conditional Statements47
3
Checking a Number of Conditions: the Switch Statement50
2
Repeating Things: Loops52
7
Functions and Code Design
59
30
Creating a Function60
2
Using Functions62
7
Code Layout70
1
Comment Code71
1
Use Descriptive Names72
1
Simplify Conditions72
1
Keep the Number of Exit Points to a Minimum73
1
Use Variables for Special Values74
1
Keep Related Code Together75
1
Minimize Variable Scope76
1
Use Variables for Just One Purpose76
1
Remove Unused Variables76
1
Functions Should Do One Thing and Do it Well76
1
Organizing and Reusing Code
77
12
Creating Code Modules with js Files78
2
Creating our own Objects with JavaScript Classes80
9
Interacting with the Web Browser
89
36
Modifying our Page with JavaScript
93
17
Changing the Page as it Downloads93
1
Changing the Page after it has Downloaded94
1
Swapping Images95
5
Dynamically Changing Links100
2
Accessing Forms102
8
Window Events111
2
Document Events113
1
HTML Elements and Events114
7
Checking the User's Browser
121
4
Browser Detection121
1
Object Detection122
3
Basic Built-In Dialog Windows
125
4
The Alert Dialog126
1
The Confirm Dialog127
1
The Prompt Dialog127
2
Creating New Browser Windows
129
14
Communicating Between Windows138
1
Closing Windows139
2
Custom Dialog Windows141
2
Windows within Windows
143
9
Documents within Documents143
2
Multiple Windows within Window145
1
Framesets146
1
Frameset Hierarchy147
1
Accessing frames148
2
Complex Framesets150
2
Image Viewer Application - Part 1
152
11
Application Outline153
1
Building the Application154
1
Stylizing the Application155
1
Preventing JavaScript Errors156
1
Allowing for Smaller Screens156
1
Navigation System157
6
DHTML for IE4 and NN4
163
30
The Need for Cascading Style Sheets (CSS)
164
2
Manipulating CSS with JavaScript
168
6
DHTML in IE 4169
3
DHTML in NN4172
2
Writing Cross-Browser DHTML
174
5
The Difficulties with Cross-Browser DHTML175
3
Technique 1: Using document all Collection Test178
1
Technique 2: Using the document layers Collection Test178
1
Technique 3: Using a Browser Sniffer178
1
ImageViewer: Part II: Adding DHTML and CSS
179
14
Applying CSS/CSSP Stylesheets179
3
Applying DHTML182
6
Back to the Main Page188
5
The DOM: DHTML for the Latest Browsers
193
44
DOM Interfaces197
2
Accessing Parts of a Document199
1
Accessing Elements199
3
Traversing the Document Structure202
2
Identifying Nodes204
2
Manipulating the Document206
1
Mutating the Document Structure207
1
Creating New Nodes208
1
Modifying Attributes209
1
Importing XML Documents
213
7
Event Binding221
2
Choosing an Event Binding Method223
1
The Event Object224
2
Canceling Event Propagation226
4
Image Viewer Application - Part 3
230
7
Thumbnail HTML Page Template231
1
Event Binding for the Thumbnail Pages232
5
Advanced Form Techniques
237
38
Adding Elements to a Select Control237
5
Creating Your Own Controls with DTHML242
14
The E-commerce Image Viewer - Part 1
256
11
Interface Changes256
6
Code Changes262
5
Passing Information Between Web Pages and Data Storage
275
64
Keeping Information Alive
275
9
Passing Information with URLs276
6
Maintaining State with Session Variables282
2
Permanently Storing Information: Cookies
284
15
Reading and Writing Cookies285
3
Making Cookies Easy: Cookie Functions288
11
The E-commerce Image Viewer Application - Part 2
299
40
Creating the Shopping Cart Classes300
21
Using the Classes321
18
Data Validation Techniques
339
38
Validation of Different Types of Information
339
21
Validating Characters340
2
Validating Numbers342
5
Validating a Postal Code347
1
Validating an E-mail Address348
2
Validating Dates350
3
Validating a Credit Card Number353
7
Image Viewer E-commerce Application - Part 3
360
17
Adding Automatic Form Validation360
12
Updating the Personal Details Page372
1
Updating the Credit Card Details Page372
5
<