package js.html
extends XMLHttpRequestEventTarget › EventTarget
extended by JqXHR
Available on js
XMLHttpRequestis an API that provides client functionality for transferring data between a client and a server. It provides an easy way to retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just a part of the page without disrupting what the user is doing.Documentation XMLHttpRequest by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (ignored:String)new (?params:Dynamic)Throws:
null |
DOMError |
|---|
onreadystatechange:Functionread only readyState:Intread only response:DynamicReturns an ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, depending on the value of XMLHttpRequest.responseType. that contains the response entity body.
read only responseText:StringresponseType:XMLHttpRequestResponseTyperead only responseURL:Stringread only responseXML:HTMLDocumentread only status:Intread only statusText:Stringtimeout:Intread only upload:XMLHttpRequestUploadwithCredentials:Boolabort ():VoidThrows:
null |
DOMError |
|---|
getAllResponseHeaders ():StringThrows:
null |
DOMError |
|---|
getResponseHeader (header:String):StringThrows:
null |
DOMError |
|---|
open (method:String, url:String, async:Bool, ?user:String, ?password:String):Voidopen (method:String, url:String):VoidThrows:
null |
DOMError |
|---|
overrideMimeType (mime:String):VoidThrows:
null |
DOMError |
|---|
send (data:Dynamic):Voidsend ():Voidsend (data:ArrayBuffer):Voidsend (data:ArrayBufferView):Voidsend (data:Blob):Voidsend (data:HTMLDocument):Voidsend (data:String):Voidsend (data:FormData):VoidThrows:
null |
DOMError |
|---|
setRequestHeader (header:String, value:String):VoidThrows:
null |
DOMError |
|---|
static inline read only DONE:Int = 4 static inline read only HEADERS_RECEIVED:Int = 2 static inline read only LOADING:Int = 3 static inline read only OPENED:Int = 1 static inline read only UNSENT:Int = 0
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/XMLHttpRequest.html