Home > Store

Understanding AJAX: Using JavaScript to Create Rich Internet Applications

Register your product to gain access to bonus material or receive a coupon.

Understanding AJAX: Using JavaScript to Create Rich Internet Applications

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2007
  • Dimensions: 7" x 9-1/4"
  • Pages: 384
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-221635-3
  • ISBN-13: 978-0-13-221635-7

AJAX: fast mastery for experienced Web developers!

Already an experienced Web developer? Apply your skills in today’s fastest-growing area of Web development: AJAX!

Building on what you already know, this fast-paced guide will show you exactly how to create rich, usable Internet applications. Joshua Eichorn teaches through sophisticated code examples, including extensive server-side PHP code.

You won’t just learn how to code AJAX applications: Eichorn covers the entire development lifecycle, from use cases and design through debugging. He also presents detailed application case studies, including a start-to-finish update of a non-AJAX application that addresses everything from feature improvements to changing usage patterns. Coverage includes:

·       How AJAX changes the conventional Web development cycle

·       Problems created by the AJAX paradigm -- and how to avoid them

·       Adding AJAX to existing Web applications: key considerations

·       Using core AJAX technologies, including the XMLHttpRequest object

·       Consuming data returned to an AJAX application using both XSLT and JSON

·       Building more usable AJAX applications: guidelines and downloadable resources

·       Use cases: solving real-world problems in the AJAX environment

·       Libraries and toolkits for simplifying AJAX development, including Sarissa, scriptaculous, and HTML_AJAX

·       A complete guide to AJAX debugging

·       Supporting browsers without XMLHttpRequest by using IFrames or cookies

·       JSON data encoding debugging guide, which covers tools for Firefox and Internet Explorer

·       A list of libraries, which includes PHP, .NET, Java, and other libraries that can be used with any server language

Extras

Related Article

Introduction to HIJAX

Sample Content

Online Sample Chapter

Getting Started with AJAX and the XMLHttpRequest Object

Table of Contents

Understanding AJAX:

Using JavaScript to Create Rich Internet Applications

Joshua Eichorn

0132216353

PART I

Chapter 1 What Is AJAX?

1.1 Rich Internet Applications

1.2 AJAX Defined 

1.3 Technologies of AJAX

1.4 Remote Scripting

1.5 Gmail Brings XMLHttpRequest into the Mainstream

1.6 New Name: AJAX 

1.7 Summary

Chapter 2 Getting Started

2.1 XMLHttpRequest Overview

    2.1.1 XMLHttpRequest::Open()

    2.1.2 XMLHttpRequest::Send()

    2.1.3 XMLHttpRequest::setRequestHeader()

    2.1.4 XMLHttpRequest::getResponseHeader() and getAllResponseHeaders()

    2.1.5 Other XMLHttpRequest Methods

    2.1.6 XMLHttpRequest Properties

    2.1.7 readyState Reference

2.2 Cross-Browser XMLHttpRequest

2.3 Sending Asynchronous Requests

2.4 AJAX Without XMLHttpRequest

2.5 Fallback Option 1: Sending a Request Using an IFrame

    2.5.1 Creating a Hidden IFrame

    2.5.2 Creating a Form

    2.5.3 Send Data from the Loaded Content to the Original Document

    2.5.4 Complete Iframe AJAX Example

2.6 Fallback Option 2: Sending a Request Using a Cookie

2.7 Summary

Chapter 3 Consuming the Sent Data

3.1 Document-Centric Approaches

    3.1.1 Adding New HTML Content to a Page with AJAX

    3.1.2 Consuming XML Using DOM

    3.1.3 Consuming XML Using XSLT

3.2 Remote Scripting

    3.2.1 Basic RPC

    3.2.2 SOAP and XML-RPC

    3.2.3 Custom XML

    3.2.4 JavaScript and JSON

3.3 How to Decide on a Request Type

3.4 Summary

Chapter 4 Adding AJAX to Your Web Development Process

4.1 Changes to the Development

    4.1.1 Enhancement-Driven Changes

    4.1.2 AJAX in Action: Removing a Popup User Search

    4.1.3 Changes Caused by Creating an AJAX-Driven Application

4.2 Integrating AJAX into a Framework

4.3 JavaScript as a Primary Development Language

4.4 Problems Created by the New Development Paradigm

4.5 Advantages to Using a Library

4.6 Reasons to Build Your Own Library

4.7 How Open Source Fits into the Mix

    4.7.1 Evaluating an Open Source Library

    4.7.2 Open Source Libraries in Relation to Commercial Libraries

4.8 Use Case for Building: The Firefox Counter

4.9 Use Case for Downloading: An Intranet Web Site

4.10 Summary

Chapter 5 Getting the Most from AJAX

5.1 Goals of AJAX

    5.1.1 Increasing Interactivity

    5.1.2 Decreasing the Time Required to Perform Actions

    5.1.3 Reducing Bandwidth Use

    5.1.4 Creating Rich Applications

5.2 Measuring Improvements

5.3 Promises and Problems of Combining AJAX with Other New Technologies

    5.3.1 Combining AJAX with Flash

    5.3.2 Scalable Vector Graphics (SVG)

    5.3.3 XML User Interface Languages

5.4 Summary

Chapter 6 Usability Guidelines

6.1 Defining Usability

6.2 Usability Guidelines

    6.2.1 Keep the User’s Expectations in Mind

    6.2.2 Provide Feedback to Actions

    6.2.3 Maintain the User’s Focus When Adding Content

    6.2.4 Keep the Ability to Undo Actions

    6.2.5 Know If You Are Developing an Application or a Web Site

    6.2.6 Only Use AJAX Where It Has the Greatest Effect

    6.2.7 Have a Plan for Those Users Without XMLHttpRequest

6.3 Common Usability Problems

    6.3.1 Stealing Focus with Validation Messages

    6.3.2 Preventing Undo with Autosave

    6.3.3 Updating Sections of a Page Withoutthe User Realizing It

    6.3.4 Breaking Bookmarking by Using AJAX to Load Entire Pages

    6.3.5 Making AJAX Required on a Web Store

6.4 Summary

Chapter 7 AJAX Debugging Guide

7.1 Two Sides to Debugging

7.2 Looking at AJAX Communications

    7.2.1 Building an AJAX Logger

    7.2.2 Using the Logger

    7.2.3 Firebug: A Firefox Debugging Extension

    7.2.4 Fiddler

    7.2.5 General Debugging Scenarios

7.3 JavaScript Debugging Tools

7.4 JavaScript Exceptions

7.5 Dumping Variables

7.6 Summary

PART II

Chapter 8 Libraries Used in Part II: Sarissa, Scriptaculous

8.1 Overview of the Use Cases

8.2 Libraries Used in Part II of This Book

8.3 Sarissa

    8.3.1 Installation

    8.3.2 Making an AJAX Request

    8.3.3 Basic XML Features

    8.3.4 Working with DOM Documents

    8.3.5 Using XPath to Find Nodes in a Document

    8.3.6 Transforming XML with XSLT

    8.3.7 Sarissa Development Tips

8.4 Scriptaculous

    8.4.1 Installation

    8.4.2 Visual Effects

    8.4.3 Hide/Show Pairs

    8.4.4 Drag-and-Drop

    8.4.5 Sortables

    8.4.6 Slider Control

    8.4.7 Scriptaculous Development Tips

8.5 Summary

Chapter 9 Libraries Used in Part II: HTML_AJAX

9.1 HTML_AJAX

    9.1.1 Installation

    9.1.2 HTML_AJAX JavaScript API

    9.1.3 Remote Stub AJAX

    9.1.4 Using HTML_AJAX_Action

    9.1.5 JavaScript Behaviors

    9.1.6 JavaScript Utility Methods

    9.1.7 PHP Utility Methods

    9.1.8 HTML_AJAX Development Tips

9.2 Summary

Chapter 10 Speeding Up Data Display

10.1 Overview of the Sun Rise and Set Data Viewer

10.2 Building the Non-AJAX Version of the Sun Rise and Set Viewer

    10.2.1 SunRiseSet Class

    10.2.2 Graph.php

    10.2.3 Standard.php

10.3 Problems with the Non-AJAX Viewer

10.4 Improving Viewing with AJAX

    10.4.1 Viewer HTML Updated for AJAX

    10.4.2 Viewer PHP Script Updated for AJAX

10.5 Summary

Chapter 11 Adding an AJAX Login to a Blog

11.1 Why Logins Work Well with AJAX

11.2 Building an AJAX Login

11.3 Extending the Login Form

11.4 Implementing the AJAX Comment Login System Using XML

11.5 Summary

Chapter 12 Building a Trouble-Ticket System

12.1 Trouble-Ticketing System

12.2 AJAX Reliance Scale 

12.3 Creating the Back End

12.4 Exporting the Back End

12.5 Building the JavaScript Application

12.6 Login Component

12.7 User-Registration Component

12.8 Account-Editing Component

12.9 Ticket-Creation Component

12.10 Ticket-Editor Component

12.11 My-Tickets Component

12.12 Assign-Tickets Component

12.13 Security Considerations with AJAX Applications

12.14 Comparing Our AJAX-Driven Application against a Standard MVC Model

12.15 Summary

Appendix A JavaScript AJAX Libraries

AJAX Toolbox

Bajax

Dojo Toolkit

libXmlRequest

MochiKit

Rico

Simple AJAX Code-Kit (SACK)

ThyAPI

Qooxdoo

XHConn

Yahoo! User Interface Library

Appendix B AJAX Libraries with Server Ties

PHP

    AjaxAC

    HTML_AJAX

    PAJAJ

    TinyAjax

    Xajax

    XOAD

Java

    AjaxTags

    Direct Web Remoting (DWR)

    Google Web Toolkit

    ZK

C#/.NET

    Ajax.NET

    Anthem.NET

    Atlas

    MagicAJAX.NET

Multiple Languages

    CPAINT

    Rialto

    SAJAX

Appendix C JavaScript DHTML Libraries

Accesskey Underlining Library (AUL)

Behaviour

cssQuery()

Dean Edwards IE7

DOM-Drag

JavaScript Shell

Lightbox JS

Moo.fx

Nifty Corners Cube

overLIB

Sorttable

Tooltip.js

WZ_jsgraphics

WZ_dragdrop

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020