The XMLHttpRequest
object, which is supported by most browsers, provides asynchronous communication between a web browser and an underlying server. Using the object, clients may submit XML data to a server, and retrieve it from the server, without reloading the page. XML data may be converted to HTML on the client side, using the DOM API and Extensible Stylesheet Transformations (XSLT). The implementations of XMLHttpRequest
may vary across browsers. For example, an instance of an XMLHttpRequest
object is created in IE 6 as follows:
var req = new ActiveXObject("Microsoft.XMLHTTP");
In Internet Explorer 7, XMLHttpRequest
is available as a window object property. An instance of an XMLHttpRequest
object in IE 7 is created as follows:
var req = new XMLHttpRequest();
W3C has introduced an XMLHttpRequest
object specification (http://www.w3.org/TR/XMLHttpRequest/) to standardize implementations of the XMLHttpRequest
object. The XMLHttpRequest
object has various attributes...