JavaScript Design

Book description

JavaScript Design shows designers how to create interactive JavaScript applications for the web. It provides detailed descriptions of JavaScript structures, statements and objects, using JavaScript to create different elements of a web page,controlling a page's overall design and function with JavaScript, passing data and variables between clients and servers. Also covered are advanced topics server-side languages: PHP, Perl, ASP, CGI, XML, connections to Java and Cold Fusion. The line between developers and designers is fading. Designers are challenged with projects that require them to have a strong knowledge of the server side issues traditionally fielded by a web developer. Designers are looking for books that teach them the web developer knowledge in a language in which they are accustomed.

Table of contents

  1. Copyright
  2. About the Author
  3. About the Technical Reviewers
  4. Acknowledgments
  5. Basic JavaScript
    1. Jump-Starting JavaScript
      1. JavaScript Lives in a Web Page
      2. Putting JavaScript into Your HTML Pages
      3. What You Can Do with JavaScript That You Can’t Do with HTML
      4. An Interpreted Language
      5. A Tale of Two Interpreters
      6. Generated JavaScript
      7. Summary
    2. An Orientation to JavaScript
      1. Writing JavaScript
      2. Naming Rules and Conventions
      3. A Weakly Typed Language Means That JavaScript Is Smart
      4. Summary
    3. Dealing with Data and Variables
      1. Literals
      2. Variables
      3. Primitive and Compound Data
      4. Arrays
      5. Summary
    4. Using Operators and Expressions
      1. General and Bitwise Operators
      2. General Operators in JavaScript
      3. Operators
      4. Precedence
      5. Summary
    5. JavaScript Structures
      1. Statements in Sequential Structures
      2. Conditional Structures
      3. Loops
      4. The with Statement
      5. The label and continue Statements and Nested Loops
      6. Summary
    6. Building and Calling Functions
      1. Methods and Functions
      2. Creating Functions
      3. Firing Functions with Event Handlers
      4. The return Statement
      5. Using Functions as Data
      6. Properties in Functions
      7. Methods in Functions
      8. Summary
    7. Objects and Object Hierarchies
      1. Hierarchy of Objects in JavaScript
      2. User-Defined Objects
      3. Built-in Objects and Their Properties
      4. Key Built-in Object Methods
      5. Summary
  6. Using JavaScript with Web Pages
    1. JavaScript Object-Oriented Programming and the Document Object Model
      1. Object-Oriented Programming in JavaScript
      2. The Prototype Concept
      3. The Document Object Model
      4. Summary
    2. Frames and Addressing Frames in Windows
      1. The Window as a Complex Object
      2. Scripts That Write Scripts
      3. Summary
    3. Event Handlers
      1. The location, anchor, and history Objects
      2. Events and Event Handlers in HTML and JavaScript
      3. Summary
    4. Making Forms Perform
      1. The Many Types of Forms Elements in HTML
      2. All Text Entries Are Strings
      3. Passing Data Between Forms and Variables
      4. Forms as Arrays
      5. Types of Forms
      6. Buttons and Their Events
      7. Summary
    5. Dynamic HTML
      1. What Is Dynamic HTML?
      2. Cascading Style Sheets
      3. Borders
      4. External CSS Style Sheets
      5. The Role of JavaScript in Dynamic HTML
      6. Summary
    6. Remember with Cookies
      1. What Are Cookies and How Are They Used?
      2. Adding More Attributes
      3. Getting Information and Giving It Back
      4. Summary
  7. JavaScript and Other Applications and Languages
    1. Using PHP with JavaScript
      1. The PHP4 Scripting Language
      2. Passing Data from JavaScript to PHP
      3. Controlling Multiple PHP Pages with JavaScript
      4. JavaScript Form Preprocessing for PHP
      5. JavaScript, PHP, and MySQL
      6. Summary
    2. Using ASP with JavaScript
      1. Creating ASP Pages
      2. Variables in VBScript
      3. Operators and Conditional Statements
      4. Loop Structures
      5. Arrays
      6. Passing Data from JavaScript to ASP
      7. Controlling Multiple ASP Pages with JavaScript
      8. Microsoft Access, ASP, and JavaScript
      9. Setting Up the Access 2000 File
      10. Placing the Access 2000 File on the Server and Preparing the DSN
      11. Making the Connection Between Your ASP Page and Database File
      12. Reading an Access 2000 Database with ASP
      13. Reading and Displaying Multiple Fields
      14. Inserting Records into Access from HTML
      15. Summary
    3. CGI and Perl
      1. Scripting with Perl
      2. A Brief Perl Tutorial
      3. Perl Operators
      4. Perl Statements
      5. File Handling in Perl
      6. Passing Data to CGI from HTML
      7. Summary
    4. Working with XML and JavaScript
      1. The XML Mystique
      2. What Is XML?
      3. Reading and Showing XML Data with JavaScript
      4. Summary
    5. Flash ActionScript and JavaScript
      1. ActionScript and JavaScript
      2. Firing a JavaScript Function from Flash
      3. Passing Variables from Flash 5 to JavaScript
      4. Summary
    6. JavaScript and Other Languages
      1. JavaScript and Java Applets
      2. A Little Java
      3. JavaScript and ColdFusion
      4. JavaScript and ASP.NET
      5. Summary
  8. Example Glossary

Product information

  • Title: JavaScript Design
  • Author(s): William B. Sanders
  • Release date: December 2001
  • Publisher(s): New Riders
  • ISBN: 9780735711679