XMLHttpRequest - Web APIs | MDN - MDN Web Docs
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
OverviewConstructorInstance propertiesInstance methodsEventsBrowser compatibilitySee alsoXMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a …EventTarget XMLHttpRequestEventTarget XMLHttpRequestDespite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML.If your communication needs to involve receiving event data or message data from a server, consider using server-sent events through the EventSource interface. For full-duplex communication, WebSockets may be a better choice.See more on developer.mozilla.orgCode sampleconst {Cc,Ci} = require("chrome");function createTCPErrorFromFailedXHR(xhr) { let status = xhr.channel.QueryInterface(Ci.nsIRequest).status; let errType; if ((status & 0xff0000) === 0x5a0000) {...Documentation under CC-BY-SA 2.5 license · Code under CC0 licenseSee more on MDNFeedbackThanks!Tell us more XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a …EventTarget XMLHttpRequestEventTarget XMLHttpRequest Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML.If your communication needs to involve receiving event data or message data from a server, consider using server-sent events through the EventSource interface. For full-duplex communication, WebSockets may be a better choice.
XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a …EventTarget XMLHttpRequestEventTarget XMLHttpRequest
Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML.If your communication needs to involve receiving event data or message data from a server, consider using server-sent events through the EventSource interface. For full-duplex communication, WebSockets may be a better choice.
DA: 1 PA: 86 MOZ Rank: 39