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
represents an approach of using the XMLHttpRequest API
provided in Web browsers to update content dynamically without
reloading the entire browser page.
- XMLHttpRequest is an object type provided by Web browsers
that allows you to send HTTP requests to and receiving response
from the Web server.
- ajax = new XMLHttpRequest():
Constructor to create a new XMLHttpRequest object.
- ajax.open(method, url, async):
Method to initialize a request with a given method,
a URL of the Web server,
an asynchronization flag: true or false.
Method to send an initialized request with the given
request body to the Web server.
Property representing the response's body content as a text string.
Property representing the handler function on the "load" event,
fired when the response of the request is fully loaded.
Table of Contents
About This Book
Data Types, Variables and Expressions
Flow Control Statements
Creating, Accessing, and Manipulating Arrays
Defining and Calling Functions
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
Using Functions as "Function" Objects
Introduction to Built-in Object Types
W3C's Document Object Model (DOM) Specifications
Full Version in PDF/EPUB