AJAX (Asynchronous JavaScript And XML)

This chapter provides a quick introduction on AJAX (Asynchronous JavaScript And XML). Topics include what introduction to AJAX, XMLHttpRequest API, requests, responses, properties, methods and events; ; examples to send synchronous and asynchronous requests, to parse responses as JSON or other objects, and to create event handlers for receiving responses, reporting process progress, checking HTTP status.


These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

What Is AJAX

XMLHttpRequest Object and API

XMLHttpRequest Events and Handlers

AJAX Example - Simple Synchronous Requests

AJAX Example - Asynchronous Requests and Events

AJAX Example - Progress and Status Checked

AJAX Example - JSON and Formatted Responses


Takeaways:

Table of Contents

 About This Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

 W3C's Document Object Model (DOM) Specifications

AJAX (Asynchronous JavaScript And XML)

 References

 Full Version in PDF/EPUB