You are previewing Negus Live Linux Series Ajax Construction Kit: Building Plug-and-Play Ajax Applications.
O'Reilly logo
Negus Live Linux Series Ajax Construction Kit: Building Plug-and-Play Ajax Applications

Book Description

Supercharge Your Sites with Ajax Right Now...No Scripting Expertise Needed!

You’ve heard how great Ajax is--how it can help make your Web sites more usable, more interactive, more responsive, more successful. Ajax Construction Kit lets you put Ajax to work right now, even if you’ve never written a script! Just learn a few essentials, check out a few examples, then run the live CD and discover all the plug-and-play code you need to hit the ground running. Ajax Construction Kit’s built-in applications work right out of the box. And with easy guidance from Michael Morrison, you’ll gradually deepen your understanding--learn how to customize, extend, and reuse these applications---and even build skills for creating new ones. Walk away an expert.

Use Ajax Construction Kit’s ten complete applications to

  • Dynamically load Web data

  • Dynamically populate lists

  • Tap into RSS news feeds

  • Use AutoComplete to reduce input errors

  • Create more responsive GUIs with real-time validation

  • Build a killer interface for viewing images

  • Present information or advertising with slick pop-ups

  • Provide an up-to-the-minute weather forecast

  • Build an e-commerce product shipping calculator

  • Add ratings tools to your site

  • And more...

    CD-ROM Includes

  • Your complete Ajax projects: Run the Ajax projects (HTML, JavaScript, and PHP source code) that are included on the CD from your Windows, Mac OS X, or Linux system.

  • Your complete Ajax environment: Boot the CD as an Ubuntu Linux live CD to immediately begin working with the Ajax projects (no setup required).

  • Ready-to-run tools on the CD include the XAMPP Web server, Firefox Web browser, and Bluefish HTML editor.

  • System Requirements:

  • Platform: Windows, Linux, Mac (OS X or higher)

  • Processor: Intel-based processor (Pentium or higher)

  • Memory: 128 MB RAM or more

  • Disk space: None required; USB thumb drive optional to store data

  • Optical drive: CD reader

  • Negus Live Linux Series

    Your Practical, Hands-On Guides to Getting Real Results with Free Software

    Add the free software and examples from the book’s CD to your Windows, Mac OS X, or Linux system to follow along with the projects described in the book. Or boot the CD directly to use a complete, prepackaged set of free software tools to play, display, and modify those projects. Start as a novice, by trying out examples...and finish with professional Ajax-enabled Web content!

    SERIES EDITOR CHRISTOPHER NEGUS is the bestselling author of the Red Hat Linux Bible series, Linux Toys series, and this series’ flagship title, Linux Live CDs.

    Table of Contents

    1. Copyright
      1. Dedication
    2. Negus Live Linux Series
    3. Acknowledgments
    4. About the Author
    5. Introduction
      1. The Audience for This Book
      2. The Organization of This Book
      3. About the CD-ROM for This Book
      4. What You Need to Use This Book
    6. I. Ajax Boot Camp
      1. 1. Ajax and a Brave New World Wide Web
        1. Dining with Ajax
        2. Ajax, Sting, and Asynchronicity
        3. To Reload, or Not Reload
        4. What Exactly Is Ajax?
        5. Real-World Ajax
          1. Google Suggest
          2. Netflix
          3. Flickr
          4. Google Maps
        6. Ajax Isn’t for Everything
        7. The Shipping Charge Calculator Revisited
        8. Summary
      2. 2. Inside an Ajax Application
        1. The Nuts and Bolts of Ajax
          1. HTML and CSS
          2. JavaScript
          3. XML and Ajax Data
          4. PHP and the Server
        2. The Ajax Request Lifecycle
        3. Getting to Know the Ajax Toolkit
          1. The ajaxkit.js File
          2. The domkit.js File
          3. The modalimgkit.js File
          4. The validatekit.js File
          5. The infowinkit.js File
          6. The ratingkit.js File
        4. Dismantling the E-Book Viewer
          1. The E-Books
          2. The Booker Web Page
        5. Customizing the E-Book Viewer
        6. Summary
    7. II. Building Real-World Ajax Applications
      1. 3. Dynamically Loading Web Data: An XML E-Book Viewer
        1. The Challenge: Loading Data in Smaller Chunks
        2. The Design: Designing an XML E-Book Viewer
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-Server Conversation
        3. Putting Together the E-Book Viewer
          1. The XML E-Books
          2. The Booker Web Page
          3. The Booker Server Script
        4. Testing Booker
        5. Giving Booker an Extreme Ajax Makeover
        6. Summary
      2. 4. Using Ajax to Dynamically Populate Lists: A Stock Picker
        1. The Challenge: Displaying Selected Stock Information
        2. The Design: Designing a Stock Picker
          1. The Client Requests
          2. The Server Responses
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Stock Picker
          1. The Stocks XML File
          2. The Picker Web Page
          3. The Quoter Server Script
        4. Testing Picker
        5. Giving Picker an Extreme Ajax Makeover
        6. Summary
      3. 5. Tapping into RSS News Feeds
        1. The Challenge: Querying News Feeds Dynamically
        2. The Design: Designing a News Feed Application
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the News Feeder Application
          1. The News Feeder Web Page
          2. The News Feeder Style Sheet
          3. The News Feeder Server Script
        4. Testing the News Feeder
        5. Giving News Feeder an Extreme Ajax Makeover
        6. Summary
      4. 6. Reading the User’s Mind with Auto-Complete
        1. The Challenge: Anticipating Data Entry
        2. The Design: Designing an Auto-Complete Application
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Completer Application
          1. The Completer Web Page
          2. The Completer Server Script
        4. Testing Completer
        5. Giving Completer an Extreme Ajax Makeover
        6. Summary
      5. 7. Creating Responsive GUIs with Real-Time Validation
        1. The Challenge: Checking User Input in Real Time
        2. The Design: Designing a Validator Application
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Validator Application
          1. The Validator Web Page
          2. The ZIP Lookup Server Script
        4. Testing Validator
        5. Giving Validator an Extreme Ajax Makeover
        6. Summary
      6. 8. A Killer Interface for Image Viewing
        1. The Challenge: Loading Images Dynamically
        2. The Design: Designing a Dynamic Image Viewer
        3. Putting Together the Imaginator Application
        4. Testing Imaginator
        5. Giving Imaginator an Extreme Ajax Makeover
        6. Summary
      7. 9. Presenting Information with Slick Popups
        1. The Challenge: Creating Linked Popups
        2. The Design: Designing an Information Popup Application
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Informer Application
          1. The Informer Web Page
          2. The Information Content Pages
        4. Testing Informer
        5. Giving Informer an Extreme Ajax Makeover
        6. Summary
      8. 10. Forecasting the Weather with Ajax
        1. The Challenge: Gathering Dynamic Weather Information
        2. The Design: Designing a Weather Forecaster
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Forecaster Application
          1. The Forecaster Web Page
          2. The Forecaster Server Script
        4. Testing Forecaster
        5. Giving Forecaster an Extreme Ajax Makeover
        6. Summary
      9. 11. Building an Ajax Shipping Calculator
        1. The Challenge: Retrieving Live Shipping Charges
        2. The Design: Designing a Shipper Application
        3. The Client Request
        4. The Server Response
        5. Making Sense of the Client-to-Server Conversation
        6. Putting Together the Shipper Application
        7. The Shipper Web Page
        8. The Shipper Server Script
        9. Testing Shipper
        10. Giving Shipper an Extreme Ajax Makeover
        11. Summary
      10. 12. Adding an Ajax-Powered Rating System to Your Site
        1. The Challenge: Adding Ratings to a Web Site
        2. The Design: Designing a Rater Application
          1. The Client Request
          2. The Server Response
          3. Making Sense of the Client-to-Server Conversation
        3. Putting Together the Rater Application
          1. The Rater Web Page
          2. The Cookie Reset Web Page
        4. Testing Rater
        5. Giving Rater an Extreme Ajax Makeover
        6. Summary
    8. III. Appendices
      1. A. The Past, Present, and Future of Ajax
        1. The Road to Ajax
        2. The Ajax Boom
        3. What’s Next for Ajax?
      2. B. A Quick and Dirty XMLHttpRequest Reference
        1. Methods
          1. open()
          2. send()
          3. abort()
          4. overrideMimeType()
          5. setRequestHeader()
          6. getAllResponseHeaders()
          7. getResponseHeader()
        2. Properties
          1. readyState
          2. status
          3. statusText
          4. responseText
          5. responseXML
        3. Events
      3. C. Using the Live Linux CD
        1. Inside the Live CD
        2. Running the Live CD
          1. Setting Up Networking
          2. Backing Up Your Data
        3. Running the Live CD Directly on a Windows PC
        4. Running the Live CD Directly on a Mac PC
        5. Running the Live CD in Other Ways