search for books and compare prices
Tables of Contents for Server-Side Javascript
Chapter/Section Title
Page #
Page Count
Preface
xi
 
Introduction
1
18
The Three-Tier Client/Server Architecture
3
1
An Online Marketplace
4
1
What is JavaScript?
5
4
Core JavaScript
7
1
Client-Side JavaScript
7
1
Server-Side JavaScript
7
1
Differences Between CSJS and SSJS
8
1
What Is LiveWire?
9
1
CGI, SSJS, and NAS: What to Use
10
3
Using Common Gateway Interface
10
1
Using Server-Side JavaScript
11
1
Using Netscape Application Server
11
2
Writing SSJS Applications
13
1
The Nuts and Bolts of SSJS
14
2
Passing Values Between CSJS and SSJS
16
1
Summary
17
2
Server-Side JavaScript 101
19
24
How SSJS Works
20
1
Elements of Server-Side JavaScript
21
6
Writing SSJS Code
21
2
Built-In Application Programming Interfaces
23
3
Top-Level Functions
26
1
Building SSJS Applications
27
15
Managing Applications
28
5
Your First SSJS Application: Hello World
33
1
Your Second SSJS Application: Son of Hello World
34
3
The Sample Applications
37
1
Designing SSJS Applications
38
1
Client-Side JavaScript versus Server-Side JavaScript
38
4
Summary
42
1
Session Management
43
32
The Session Management Service
44
13
Overview of the Session Management Objects
44
9
Locking
53
3
Effective Session Management
56
1
Extending the client Object
57
15
SuperClient to the Rescue
57
15
Summary
72
3
Working with Forms
75
58
The Importance of Forms
76
1
Bad Form
77
2
Making Forms Attractive
79
2
Form Hierarchy
81
3
Form Properties
84
3
The name Property
84
1
The method Property
85
1
The action Property
86
1
Giving Initial Focus to a Field
87
1
Form Elements
88
13
Hidden Fields
89
1
Text Fields
89
2
Textareas
91
1
Password Fields
92
1
Select Fields
93
4
Radio Buttons
97
1
Checkboxes
97
1
Buttons
98
3
Checking for JavaScript Usage on Forms
101
1
Forcing JavaScript Usage on Forms
102
1
Field Validation
103
1
Checking for Required Fields
103
11
Submitting Forms
114
7
URL Encoding
114
1
Formatting mail to Form Submissions
115
3
The on Submit Method
118
2
Submitting Forms Using Graphics
120
1
Submitting Forms Using the Enter Key
120
1
Form Handlers in Server-Side JavaScript
121
5
Looping Through the SSJS request Object
122
1
Creating a Client-Side request Object
123
3
Forwarding Form Submission Values
126
1
Passing Values from SSJS to SSJS, CSJS, and CGIs
127
1
Passing Server-Side JavaScript Variables or Values to Client-Side JavaScript
128
1
Back Quotes
128
1
Writing Script Tags
129
1
A Tip on Displaying Data in Tables
129
1
Summary
130
3
Working with Databases
133
44
In This Chapter
134
1
SSJS Data Basics
134
1
Supported Database Servers
135
1
The SSJS Database API Objects
135
1
Connecting to a Database
135
5
Using a Connection
139
1
Retrieving Data
140
9
Database Cursors
141
6
Aggregate Functions in SQL
147
1
Nested Cursors
148
1
Rendering a Record Set in Record Time
148
1
Updating Data
149
4
Updateable Cursors
150
2
Pass-Through SQL
152
1
A Complete Example
153
17
The Initial Page
155
1
The Lookup Form
156
1
The List Page
157
5
The Update Form
162
4
The Update Form Handler
166
3
The Result Page
169
1
Working with Stored Procedures
170
5
Calling a Stored Procedure
171
1
Retrieving Data from a Stored Procedure
172
3
Creating Tables
175
1
Summary
176
1
Advanced Database Application Techniques
177
16
Application Design Strategies
177
7
Design Strategies with DbPools
177
6
Data Security
183
1
Advanced Implementation Techniques
184
8
Performing Database Operations Across Requests
184
8
Summary
192
1
File System Access
193
28
The SSJS File Object
193
13
Creating a File Object
196
1
Opening and Closing a File
197
2
Reading from a File
199
1
Writing to a File
200
1
Locking a File
201
1
Positioning in a File
202
2
Converting Data
204
1
Getting File Information
205
1
Uploading Files
206
7
Extending the SSJS File Object
213
3
Using Java to Extend the SuperFile Object
216
2
Deleting Files in SSJS
218
1
Summary
219
2
Enabling Messaging in SSJS Applications
221
22
The SendMail Object
221
2
Using the SendMail Object
223
7
Message Headers
226
1
Sending HTML Messages
226
2
Sending Attachments
228
2
Extending the SendMail Object
230
10
Adding Properties and Methods to SendMail
230
2
Setting the Message Type
232
1
Creating Text File Attachments
233
3
Creating MIME Attachments
236
1
Adding All Attachments to the Outgoing Message
237
3
Sending the E-mail Message
240
1
Summary
240
3
Extending SSJS Using LiveConnect
243
24
Setting Up Java on the Server
244
1
Java Classes
245
2
Accessing Java from JavaScript
247
1
Accessing JavaScript from Java
248
1
Data Type Conversion
249
1
Example 1: Generating Random Numbers
250
2
Example 2: Displaying System Properties
252
3
Java Wrappers
254
1
Example 3: Accessing Remote Content
255
5
Example 4: Local File System Access
260
6
Summary
266
1
Accessing LDAP Servers from SSJS
267
28
LDAP and Directory Servers
267
4
LDAP Versus SQL
271
1
Connecting to a Directory Server
272
2
LDAP Searches
274
4
Sorting LDAP Result Sets
278
1
Authentication
279
2
Modifying Attributes
281
3
Modifying Entries
284
5
LDAPException Error Codes
289
4
Summary
293
2
Netscape Application Server
295
12
Application Servers and NAS
296
7
Using NAS in Web Applications
298
2
Advantages of a Multitier Approach
300
3
NAS Evaluation
303
3
Administration
304
1
Project Deployment
304
1
Component Development
305
1
Costs
305
1
Evaluation Summary
305
1
Summary
306
1
Index
307