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…mehr
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 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.
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.
Inhaltsangabe
Editor's Note Preface What You Should Know Font Conventions Book Structure About the Code Development and Testing We'd Like to Hear From You Acknowledgments Introduction JavaScript Pros Basic JavaScript Programming Strategy JavaScript Approaches in These Applications Moving On Chapter 1: The Client-Side Search Engine 1.1 Execution Requirements 1.2 The Syntax Breakdown 1.3 nav.html 1.4 Building Your Own JavaScript Database 1.5 Potential Extensions Chapter 2: The Online Test 2.1 Execution Requirements 2.2 The Syntax Breakdown 2.3 index.html-The Frameset 2.4 questions.js-The JavaScript Source File 2.5 administer.html 2.6 Potential Extensions Chapter 3: The Interactive Slideshow 3.1 Execution Requirements 3.2 The Syntax Breakdown 3.3 Application Variables 3.4 The Application Functions 3.5 Potential Extensions Chapter 4: The Multiple Search Engine Interface 4.1 Execution Requirements 4.2 The Syntax Breakdown 4.3 Potential Extension: Adding User Control Chapter 5: ImageMachine 5.1 Execution Requirements 5.2 The Syntax Breakdown 5.3 Potential Extension: Adding Attributes to the Template Chapter 6: Implementing JavaScript Source Files 6.1 arrays.js 6.2 cookies.js 6.3 dhtml.js 6.4 events.js 6.5 frames.js 6.6 images.js 6.7 navbar.js 6.8 numbers.js 6.9 objects.js 6.10 strings.js 6.11 Potential Extensions Chapter 7: Cookie-Based User Preferences 7.1 Execution Requirements 7.2 Syntax Breakdown 7.3 prefs.html 7.4 dive.html 7.5 Potential Extensions Chapter 8: The JavaScript Shopping Cart 8.1 Shopping Bag Walk-Through 8.2 Execution Requirements 8.3 Syntax Breakdown 8.4 Step 1: Loading Shopping Bag 8.5 Step 2: Displaying Products 8.6 Step 3: Showing All the Categories 8.7 Step 4: Adding Products to the Shopping Bag 8.8 Step 5: Changing the Order/Checking Out 8.9 Potential Extensions Chapter 9: Ciphers in JavaScript 9.1 How Ciphers Work 9.2 Execution Requirements 9.3 The Syntax Breakdown 9.4 Potential Extensions Chapter 10: Cyber Greetings: Drag-and-Drop Email 10.1 Execution Requirements 10.2 Syntax Breakdown 10.3 The Server Side 10.4 Potential Extensions Chapter 11: Context-Sensitive Help 11.1 Execution Requirements 11.2 Syntax Breakdown 11.3 Potential Extensions Chapter 12: Epilogue JavaScript Reference Browser Compatibility Objects, Methods, and Properties Top-Level Properties and Functions Event Handlers Web Resources Cool JavaScript Sites JavaScript Reference JavaScript FAQs DHTML Reference Document Object Model Reference Perl/CGI Reference Graphics Resources Similar Applications Using Perl Scripts A Perl/CGI Overview Getting Perl The Shopping Bag Script-bag.pl The CyberGreeting Script-greet.pl Colophon