Skip to content
EntityQ220674· pop 30· linked from 436 articles

XMLHttpRequest

Sign in to save

Also known as XHR

' (XHR') is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server. The methods allow a browser-based application to send requests to the server after page loading is complete, and receive information back. XMLHttpRequest is a component of Ajax programming. Prior to Ajax, hyperlinks and form submissions were the primary mechanisms for interacting with the server, often replacing the current page with another one.

Source code

Link to the source-code README · not written by Vinony

Wikidata facts

Has use
AJAX
Show 6 more facts
source code repository URL
github.com/whatwg/xhr
discoverer or inventor
Microsoft
short name
XHR
Sources (2)

via Wikidata · CC0

~6 min read

Encyclopedic overview

10 sections
Contents
  • History
  • Standards
  • Usage
  • Cross-domain requests
  • Fetch alternative
  • Example
  • See also
  • References
  • Notes
  • External links

' (XHR') is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server. The methods allow a browser-based application to send requests to the server after page loading is complete, and receive information back. XMLHttpRequest is a component of Ajax programming. Prior to Ajax, hyperlinks and form submissions were the primary mechanisms for interacting with the server, often replacing the current page with another one.

==History== The concept behind XMLHttpRequest was conceived in 2000 by the developers of Microsoft Outlook. The concept was then implemented within the Internet Explorer 5 browser (1999). However, the original syntax did not use the XMLHttpRequest identifier. Instead, the developers used the identifiers ActiveXObject("Msxml2.XMLHTTP") and ActiveXObject("Microsoft.XMLHTTP"). As of Internet Explorer 7 (2006), all browsers support the XMLHttpRequest identifier.

Excerpted from Wikipedia’s “XMLHttpRequest” article, available under the CC BY-SA 4.0 licence.