Published Jun 19, 2001 by Que.
What You Need to Know. How the Book Is Structured. Where's the Code? Conventions Used in This Book.
2. Creating Your First Scripts.
What Is a Variable? Naming Variables: Rules and Best Practices. Understanding Literal Data Types.
What Is a Function? The Structure of a Function. Where Do You Put a Function? Using a Function. Passing Values to Functions. Returning a Value from a Function. Understanding Local Versus Global Variables. Using Recursive Functions. Debugging and Troubleshooting Script Problems.
What Is an Expression? Understanding Expression Structure. Building Numeric Expressions. Building String Expressions. Building Comparison Expressions. Building Logical Expressions. Understanding Operator Precedence.
6. Controlling Your Code I: Testing.
Using if() to Make True/False Decisions. Using if()…else to Handle a false Result. Making Multiple Decisions. Debugging and Troubleshooting Script Problems.
7. Controlling Your Code II: Looping.
What Is Looping and Why Does Your Code Need It? Using while() Loops. Using for() Loops. Using do…while() Loops. Controlling Loop Execution: break and continue. Debugging and Troubleshooting Script Problems.
What Is an Array? Declaring an Array. Populating an Array with Data. Using the Array Object. Debugging and Troubleshooting Script Problems.
11. Interacting with the User.
Why Interact at All? Displaying Messages Using the alert() Method. Asking Questions Using the confirm() Method. Getting Input Using the prompt() Method. Debugging and Troubleshooting Script Problems.
13. Dealing with Dates and Times: The Date Object.
14. Working with Numbers: The Math Object.
15. Manipulating Text: The String Object.
Strings and the String Object. Determining the Length of a String. String Object Methods. Programming a Library of CommonString Functions.
16. Controlling the Browser: The Navigator Object.
About the Navigator Object. Determining the User's Browser Information.
IV. WORKING WITH BROWSER WINDOWS.
17. Understanding the Window Object.
18. Opening, Moving, and Sizing Windows.
Opening a Window. Closing a Window. Moving a Window. Resizing a Window.
Surfing Under Script Control. Using the Location Property to Change the Displayed Page. Programmed Surfing with the History Object.
Understanding Frame References. Programming Frames.
Web Page Security Issues. A First Attempt at Password Protection. The First Real Solution: A Trick for Hiding the Password. Solving the “404 Not Found” Problem. Handling Multiple Users and Passwords. Debugging and Troubleshooting Script Problems.
V. WORKING WITH THE DOCUMENT OBJECT.
22. Understanding the Document Object.
Structure of the Document Object. Properties of the Document Object. Changing Document Colors. Methods of the Document Object. Writing Data to the Page.
23. Programming Links and Anchors.
Working with the Link Object. Working with the Anchor Object.
24. Working with Images and Mouseovers.
Working with the Image Object. Creating Mouseover Effects.
25. Creating and Using Cookies.
Saving State: The Need for Truly Global Variables. Setting Cookie Data. Advanced Cookie Operations. Debugging and Troubleshooting Script Problems.
The Need for Navigation. Stage 1: Designing and Creating the Menu Objects. Stage 2: Writing a Basic Menu. Stage 3: Expanding and Collapsing the Menu Items. Stage 4: Adding Graphics and Other Interface Enhancements.
27. Understanding the Form Object.
Structure of the Form Object. Understanding Form Fields. Programming Buttons.
Now For Some Real Form Programming. Programming Text Fields. Programming Checkboxes. Programming Radio Buttons. Programming Selection Lists.
The Need for Browser-Based Validation. Displaying the Form Data for Confirmation. Making Form Fields Mandatory. Validating the Field Data Type. Checking for Invalid Data.
Making the Move to E-Commerce. Creating the Project Data. An Overview of the Project. Setting Up Your Store. Understanding the Shopping Cart. Understanding the Personal Details Page. Understanding the Credit Card Details Page.
VII. WORKING WITH DYNAMIC HTML.
31. A Brief Overview of Dynamic HTML.
The Need for Truly Dynamic Pages. Dynamic HTML: Scripting for Control Freaks. DHTML Today: A Mess! The Big DHTML Picture. An Introduction to the Document Object Model. The DOM: A Hierarchy of Nodes.
32. Version 5 DHTML: The W3C's Document Object Model.
Dealing with Nodes in the DOM. Changing the Structure of the Document Hierarchy.
33. Version 4 DHTML: Proprietary Object Models.
The Pre-DOM Dark Ages. The Internet Explorer 4 DHTML Document Object Model. The Netscape Navigator 4 Document Object Model.
34. Cross-Browser Solutions: Detection and Generic Functions.
Cross-Browser Issues. Detecting the User's Browser. Creating a Custom Object Front-End.
Some Notes Before We Begin. Cross-Browser DHTML Text Examples. Cross-Browser DHTML Image Examples.
Appendix C: Working with Regular Expressions.