You are previewing Ajax Bible.
O'Reilly logo
Ajax Bible

Book Description

Build interactive Web applications with Ajax

Create live searches and online spreadsheets

Discover programming mistakes to avoid!

Create blazing-fast Web applications with powerful Ajax

If you think that mastering Ajax is too difficult, guess again. You can create Web applications that look and feel like desktop apps in less time than you think with the comprehensive Ajax instruction in this in-depth book. You'll find easy-to-follow tutorials, hundreds of tips and tricks, and so much practical information that even skilled developers will reach for this book first. Let this Bible be your guide as you jump into the hottest Web programming technology in years.

* Master the fundamentals--JavaScript(r), XML, dynamic HTML, and CSS

*

Tie Ajax into Google with the Google(r) API

*

Handle simultaneous XMLHttpRequest objects in Ajax

*

Use Ajax frameworks such as Ruby on Rails, AjaxTags, and others

*

Understand the Document Object Model (DOM)

*

Create floating menus and effects with CSS

*

Encrypt data over plain HTTP using JavaScript

*

Adapt real-world examples to your own programs

Companion Web site

Find all the code used throughout the book at www.wiley.com/go/ajaxbible

Table of Contents

  1. Cover Page
  2. Title Page
  3. Copyright
  4. About the Author
  5. Dedication
  6. Credits
  7. Contents
  8. Preface
    1. About This Book
    2. Conventions Used in This Book
    3. What You'll Need
  9. Acknowledgments
  10. Part I: Fundamental Ajax
    1. Chapter 1: Essential Ajax
      1. What Does “Ajax” Mean?
      2. What Can You Do with Ajax?
      3. Summary
    2. Chapter 2: Know Your JavaScript
      1. What Is JavaScript's Place in Ajax?
      2. A Brief History of JavaScript
      3. Getting Started with JavaScript
      4. Creating JavaScript Functions
      5. Storing Your Data in Variables
      6. Operating on Your Data with Operators
      7. Making Decisions with the If Statement
      8. Executing Different Code in Different Browsers
      9. Working with Loops
      10. Connecting JavaScript to HTML Buttons
      11. Summary
    3. Chapter 3: Creating Ajax Applications
      1. Writing Ajax
      2. Interacting with Server-Side Code
      3. Passing Data to Server-Side Scripts
      4. Using Ajax with XML
      5. Summary
    4. Chapter 4: Serious Ajax Programming
      1. Working with Multiple Concurrent XMLHttpRequest Requests
      2. Handling JavaScript Sent from the Server
      3. Connecting to Google Suggest
      4. Calling Another Domain in Ajax
      5. A Login Example
      6. Working with Ajax and Head Requests
      7. Eliminate Caching
      8. Summary
  11. Part II: Ajax in Depth
    1. Chapter 5: Introducing Ajax Frameworks
      1. Using the Ajax Utility Library
      2. Using libXmlRequest to Download XML
      3. Using AJAXLib to Download XML
      4. Summary
    2. Chapter 6: More Advanced Ajax Frameworks
      1. Using the Majax Framework
      2. Using the Sack Framework
      3. Using the XHConn Framework
      4. Using the uniAjax Framework
      5. Using the AjaxGear Framework
      6. Using the AjaxRequest Framework
      7. Using the Http Framework to Avoid Caching
      8. Using the Sarissa Framework to Handle XML
      9. Using the Interactive Website Framework to Handle XML
      10. Summary
    3. Chapter 7: Using Server-Side Ajax Frameworks
      1. Working with PHP-Based Frameworks
      2. Working with Java-Based Frameworks
      3. Working with Ajax and Ruby on Rails
      4. Summary
  12. Part III: Ajax and the DOM, XML, CSS, and Dynamic HTML
    1. Chapter 8: The DOM and Event Handling
      1. Introducing the DOM
      2. Appending Elements Using the DOM
      3. Replacing Elements Using the DOM
      4. Creating an Ajax-Enabled Shopping Cart
      5. Downloading Images with Ajax
      6. Handling Ajax Timeouts
      7. Summary
    2. Chapter 9: XML and Ajax
      1. Creating XML
      2. Handling XML with JavaScript
      3. Retrieving Data from an XML Document
      4. Handling White Space in the Mozilla, Netscape, and Firefox Web Browsers
      5. Handling White Space in a Cross-Browser Way
      6. Accessing XML Data Directly
      7. Accessing XML Attribute Values
      8. Validating Your XML
      9. Summary
    3. Chapter 10: Cascading Style Sheets and Ajax
      1. Ajax-Enabled Menus
      2. Getting Text Noticed in Ajax Applications
      3. Scrolling Text
      4. Styling Text Using CSS
      5. Styling Colors and Backgrounds Using CSS
      6. Styling Locations in Web Pages
      7. Summary
    4. Chapter 11: Dynamic HTML and Ajax
      1. Creating Mouseovers
      2. Using Dynamic Styles
      3. Using document.write
      4. Using Dynamic HTML Methods to Update Part of a Page
      5. Using Dynamic HTML Properties to Update Part of a Page
      6. Using Text Ranges to Update Part of a Page
      7. Using createElement to Create New Elements on the Fly
      8. Creating Dynamic Tables
      9. Catching the User's Attention with Animation
      10. Summary
  13. Part IV: Advanced Ajax
    1. Chapter 12: Introducing Ajax and PHP
      1. Getting Started with PHP
      2. Commenting Your PHP
      3. Working with Variables
      4. Interpolating Variables in Strings
      5. Working with Arrays
      6. Handling Your Data with Operators
      7. Making Choices with the if Statement
      8. Using Switch Statements
      9. Using loop Statements
      10. Summary
    2. Chapter 13: PHP: Functions and HTML Controls
      1. Working with Functions
      2. Handling HTML Controls
      3. Working with Image Maps
      4. Uploading Files
      5. Summary
    3. Chapter 14: Handling User Input in PHP
      1. Displaying All the Data in a Form
      2. Looking at Server Variables
      3. Getting User Input in Arrays
      4. Wrapping PHP Applications in a Single Page
      5. Using Hidden Controls to Check Whether a Page Has Been Seen Before
      6. Validating User Input, Numbers, and Text
      7. Handling HTML Sent by the User
      8. Summary
    4. Chapter 15: Ajax and Security
      1. Protecting Against Malicious Users
      2. Looking at the Security Issues with Proxy Servers
      3. Handling Security in Ajax Applications
      4. Protecting Passwords Using Public and Private Keys
      5. Summary
    5. Chapter 16: Filters, MVC, and Ajax
      1. Restricting Access with Filters
      2. Logging User Access with Filters
      3. Restricting Access Based on Time of Day
      4. Model-View-Controller Applications
      5. Installing the MVC Application
      6. Accessing MVC with Ajax
      7. Summary
  14. Index