Book description
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 (http://www.serve.com/hotsyte/) 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.
Publisher resources
Table of contents
-
JavaScript Application Cookbook
- Editor’s Note
- Preface
-
Introduction
- JavaScript Pros
- Basic JavaScript Programming Strategy
-
JavaScript Approaches in These Applications
- Reuse as Much Code as Possible
- Isolate the JavaScript
- Declare Global Variables and Arrays near the Top
- Declare Constructor Functions After the Global Variables
- Define Functions from Top to Bottom in “Chronological” Order
- Each Function Performs a Single Operation
- Use as Many Local Variables as Possible
- Moving On
- 1. The Client-Side Search Engine
- 2. The Online Test
- 3. The Interactive Slideshow
- 4. The Multiple Search Engine Interface
-
5. ImageMachine
- Execution Requirements
- The Syntax Breakdown
- Potential Extension: Adding Attributes to the Template
- 6. Implementing JavaScript Source Files
- 7. Cookie-Based User Preferences
- 8. The JavaScript Shopping Cart
-
9. Ciphers in JavaScript
- How Ciphers Work
- Execution Requirements
- The Syntax Breakdown
- Potential Extensions
-
10. Cyber Greetings: Drag-and-Drop Email
- Execution Requirements
-
Syntax Breakdown
- The Other Two Documents
- Walking on Familiar Ground
- Places Everyone!
- Tracking the Mouse Location
- Calling All Icons
- Moving the Icons
- After the Documents Load
- Meet the Variables
- Displaying the Greetings
- Moving Through All the Images
- Keeping Dragged Icons in Place
- Testing the Work
- Creating the Actual Greeting
- Sending It Off
- Note
- The Server Side
- Potential Extensions
- 11. Context-Sensitive Help
- 12. Epilogue
-
A. JavaScript Reference
- Browser Compatibility
-
Objects, Methods, and Properties
- Anchor
- Applet
- Area
- Array
- Boolean
- Button
- Checkbox
- Date
- Document
- Event
- FileUpload
- Form
- Frame
- Function
- Hidden
- History
- Image
- Java
- JavaArray
- JavaClass
- JavaObject
- JavaPackage
- Layer
- Link
- Location
- Math
- MimeType
- Navigator
- Netscape
- Number
- Object
- Option
- Packages
- Password
- Plugin
- Radio
- RegExp
- Reset
- Screen
- Select
- String
- Submit
- sun
- Text
- Textarea
- Window
- Top-Level Properties and Functions
- Event Handlers
- B. Web Resources
- C. Using Perl Scripts
- Index
- Colophon
Product information
- Title: JavaScript Application Cookbook
- Author(s):
- Release date: October 1999
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565925779
You might also like
book
JavaScript & DHTML Cookbook
On numerous online forums for JavaScript and DHTML, the majority of questions begin with "How do …
book
JavaScript Application Design
The fate of most applications is often sealed before a single line of code has been …
book
JavaScript: The Missing Manual
JavaScript is an essential language for creating modern, interactive websites, but its complex rules challenge even …
book
Maintainable JavaScript
You may have definite ideas about writing code when working alone, but team development requires that …