Server-side JavaScript : developing integrated Web aplications /
Saved in:
Author / Creator: | Husted, Robert, 1967- |
---|---|
Imprint: | Reading, Mass. : Addison Wesley, c1999. |
Description: | xiv, 316 p. ; 24 cm. + 1 computer laser optical disc (4 3/4 in.) |
Language: | English |
Subject: | |
Format: | Print Book |
URL for this record: | http://pi.lib.uchicago.edu/1001/cat/bib/4017857 |
Table of Contents:
- Preface
- 1. Introduction
- The Three-Tier Client/Server Architecture
- An Online Marketplace
- What is JavaScript?
- Core JavaScript
- Client-Side JavaScript
- Server-Side JavaScript
- Differences Between CSJS and SSJS
- What Is Live Wire?
- CGI, SSJS, and NAS: What to Use
- Using Common Gateway Interface
- Using Server-Side JavaScript
- Using Netscape Application Server
- Writing SSJS Applications
- The Nuts and Bolts of SSJS
- Passing Values Between CSJS and SSJS
- Summary
- 2. Server-Side JavaScript 101
- How SSJS Works
- Elements of Server-Side JavaScript
- Writing SSJS Code
- Built-In Application Programming Interfaces
- Top-Level Functions
- Building SSJS Applications
- Managing Applications
- Your First SSJS Application: Hello World
- Your Second SSJS Application: Son of Hello World
- The Sample Applications
- Designing SSJS Applications
- Client-Side JavaScript versus Server-Side JavaScript
- Summary
- 3. Session Management
- The Session Management Service
- Overview of the Session Management Objects
- Locking
- Effective Session Management
- Extending the client Object
- SuperClient to the Rescue
- Summary
- 4. Working with Forms
- The Importance of Forms
- Bad Form
- Making Forms Attractive
- Form Hierarchy
- Form Properties
- The name Property
- The method Property
- The action Property
- Giving Initial Focus to a Field
- Form Elements
- Hidden Fields
- Text Fields
- Textareas
- Password Fields
- Select Fields
- Radio Buttons
- Checkboxes
- Buttons
- Checking for JavaScript Usage on Forms
- Forcing JavaScript Usage on Forms
- Field Validation
- Checking for Required Fields
- Submitting Forms
- URL Encoding
- Formatting mail to Form Submissions
- The onSubmit Method
- Submitting Forms Using Graphics
- Submitting Forms Using the Enter Key
- Form Handlers in Server-Side JavaScript
- Looping Through the SSJS request Object
- Creating a Client-Side request Object
- Forwarding Form Submission Values
- Passing Values from SSJS to SSJS, CSJS, and CGIs
- Passing Server-Side JavaScript Variables or Values to Client-Side JavaScript
- Back Quotes
- Writing Script Tags
- A Tip on Displaying Data in Tables
- Summary
- 5. Working with Databases
- In This Chapter
- SSJS Data Basics
- Supported Database Servers
- The SSJS Database API Objects
- Connecting to a Database
- Using a Connection
- Retrieving Data
- Database Cursors
- Aggregate Functions in SQL
- Nested Cursors
- Rendering a Record Set in Record Time
- Updating Data
- Updateable Cursors
- Pass-Through SQL
- A Complete Example
- The Initial Page
- The Lookup Form
- The List Page
- The Update Form
- The Update Form Handler
- The Result Page
- Working with Stored Procedures
- Calling a Stored Procedure
- Retrieving Data from a Stored Procedure
- Creating Tables
- Summary
- 6. Advanced Database Application Techniques
- Application Design Strategies
- Design Strategies with DbPools
- Data Security
- Advanced Implementation Techniques
- Performing Database Operations Across Requests
- Summary
- 7. File System Access
- The SSJS File Object
- Creating a File Object
- Opening and Closing a File
- Reading from a File
- Writing to a File
- Locking a File
- Positioning in a File
- Converting Data
- Getting File Information
- Uploading Files
- Extending the SSJS File Object
- Using Java to Extend the SuperFile Object
- Deleting Files in SSJS
- Summary
- 8. Enabling Messaging in SSJS Applications
- The SendMail Object
- Using the SendMail Object
- Message Headers
- Sending HTML Messages
- Sending Attachments
- Extending the SendMail Object
- Adding Properties and Methods to SendMail
- Setting the Message Type
- Creating Text File Attachments
- Creating MIME Attachments
- Adding All Attachments to the Outgoing Message
- Sending the E-mail Message
- Summary
- 9. Extending SSJS Using LiveConnect
- Setting Up Java on the Server
- Java Classes
- Accessing Java from JavaScript
- Accessing JavaScript from Java
- Data Type Conversion
- Example 1. Generating Random Numbers
- Example 2. Displaying System Properties
- Java Wrappers
- Example 3. Accessing Remote Content
- Example 4. Local File System Access
- Summary
- 10. Accessing LDAP Servers from SSJS
- LDAP and Directory Servers
- LDAP Versus SQL
- Connecting to a Directory Server
- LDAP Searches
- Sorting LDAP Result Sets
- Authentication
- Modifying Attributes
- Modifying Entries
- LDAPException Error Codes
- Summary
- 11. Netscape Application Server
- Application Servers and NAS
- Using NAS in Web Applications
- Advantages of a Multitier Approach
- NAS Evaluation
- Administration
- Project Deployment
- Component Development
- Costs
- Evaluation Summary
- Summary
- Index