Cover image for JavaScript application cookbook
Title:
JavaScript application cookbook
Author:
Bradenbaugh, Jerry.
Personal Author:
Edition:
First edition.
Publication Information:
Sebastopol, CA : O'Reilly, [1999]

©1999
Physical Description:
xiv, 462 pages : illustrations ; 24 cm
General Note:
"Programming web applications in JavaScript"--Cover.

Includes index.
Language:
English
ISBN:
9781565925779
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Item Holds
Searching...
QA76.73.J39 B73 1999 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

There is a serious information gap for Webmasters learning client-side JavaScript skills and trying to solve common Web-related problems. Knowing the syntax is one thing, being able to build a useful application is another. And while there are dozens of "how- to" JavaScript books available, few literally hand the Webmaster a set of ready-to-go, client-side JavaScript applications with thorough documentation that enable the reader to fully understand and extend those applications. By providing such a set of applications, JavaScript Application Cookbook allows Webmasters to immediately add extra functionality to their Web sites.

This book targets readers with two different skill sets. The primary target is JavaScript-knowledgeable Webmasters and designers who can immediately begin constructing their own versions of the applications. The secondary target is those with little or no JavaScript experience. The included applications are ready for immediate use and require little customization.

This book explores both the code and the techniques that are centered around core JavaScript functionality, a functionality that will not become incompatible or obsolete. The source file design of most applications and libraries will help modularize reader Web sites and facilitate easier site management and coding practices.

Chapters are organized by application. Among the included applications are:

A client-side search engine that will show coders how to build their own search engine and get excellent results, all with a client-side tool A drag-and-drop greeting application that lets users custom build and send DHTML email greetings A GUI image rollover tool that generates cross-browser image rollover code for all versions of JavaScript A robust client-side shopping cart application that lets shoppers browse and shop, while the application keeps a tab of the shopper's selections and a running bill, including tax and shipping An online test application that auto-administers, grades, and displays answers to online exams or surveys

An additional value to this book is an online resource www.serve.com that discusses the applications and points to other resources. With its focus on providing practical real-world solutions for Webmasters, JavaScript Application Cookbook is destined to become a staple for every JavaScript developer, regardless of experience.


Author Notes

Jerry Bradenbaugh is a senior Web application developer and technical lead in Los Angeles, California. His Web site, HotSyte-The JavaScript Resource, has been around since the early days of JavaScript, making it one of the oldest JavaScript resources on the Net. He has contributed in developing enterprise applications for Netscape and First Union National Bank.


Table of Contents

Editor's Notep. ix
Prefacep. xi
Introductionp. 1
1. The Client-Side Search Enginep. 9
Execution Requirementsp. 12
The Syntax Breakdownp. 12
nav.htmlp. 12
Building Your Own JavaScript Databasep. 35
Potential Extensionsp. 36
2. The Online Testp. 39
Execution Requirementsp. 43
The Syntax Breakdownp. 43
index.html--The Framesetp. 43
questions.js--The JavaScript Source Filep. 45
administer.htmlp. 48
Potential Extensionsp. 63
3. The Interactive Slideshowp. 67
Execution Requirementsp. 69
The Syntax Breakdownp. 69
Application Variablesp. 73
The Application Functionsp. 77
Potential Extensionsp. 93
4. The Multiple Search Engine Interfacep. 95
Execution Requirementsp. 96
The Syntax Breakdownp. 97
Potential Extension: Adding User Controlp. 113
5. ImageMachinep. 117
Execution Requirementsp. 120
The Syntax Breakdownp. 121
Potential Extension: Adding Attributes to the Templatep. 142
6. Implementing JavaScript Source Filesp. 147
arrays.jsp. 149
cookies.jsp. 153
dhtml.jsp. 156
events.jsp. 158
frames.jsp. 163
images.jsp. 165
navbar.jsp. 166
numbers.jsp. 167
objects.jsp. 169
strings.jsp. 174
Potential Extensionsp. 180
7. Cookie-Based User Preferencesp. 182
Execution Requirementsp. 183
Syntax Breakdownp. 186
prefs.htmlp. 186
dive.htmlp. 205
Potential Extensionsp. 214
8. Shopping Bag: The JavaScript Shopping Cartp. 217
Shopping Bag Walk-Throughp. 217
Execution Requirementsp. 223
Syntax Breakdownp. 223
Step 1 Loading Shopping Bagp. 226
Step 2 Displaying Productsp. 239
Step 3 Showing All the Categoriesp. 254
Step 4 Adding Products to the Shopping Bagp. 255
Step 5 Changing the Order/Checking Outp. 262
Potential Extensionsp. 275
9. Ciphers in JavaScriptp. 277
How Ciphers Workp. 280
Execution Requirementsp. 283
The Syntax Breakdownp. 283
Potential Extensionsp. 302
10. Cyber Greetings: Drag-and-Drop Emailp. 304
Execution Requirementsp. 307
Syntax Breakdownp. 308
The Server Sidep. 340
Potential Extensionsp. 341
11. Context-Sensitive Helpp. 342
Execution Requirementsp. 344
Syntax Breakdownp. 345
Potential Extensionsp. 354
Epiloguep. 357
A. JavaScript Referencep. 359
B. Web Resourcesp. 413
C. Using Perl Scriptsp. 424
Indexp. 443