W3cubDocs

/Haxe JavaScript

XMLHttpRequest

package js.html

extends XMLHttpRequestEventTargetEventTarget

extended by JqXHR

Available on js

XMLHttpRequest is 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:

Constructor

new (ignored:String)

new (?params:Dynamic)

Throws:

null DOMError

Variables

onreadystatechange:Function

read only readyState:Int

read only response:Dynamic

Returns 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:String

responseType:XMLHttpRequestResponseType

read only responseURL:String

read only responseXML:HTMLDocument

read only status:Int

read only statusText:String

timeout:Int

read only upload:XMLHttpRequestUpload

withCredentials:Bool

Methods

abort ():Void

Throws:

null DOMError

getAllResponseHeaders ():String

Throws:

null DOMError

getResponseHeader (header:String):String

Throws:

null DOMError

open (method:String, url:String, async:Bool, ?user:String, ?password:String):Void

open (method:String, url:String):Void

Throws:

null DOMError

overrideMimeType (mime:String):Void

Throws:

null DOMError

send (data:Dynamic):Void

send ():Void

send (data:ArrayBuffer):Void

send (data:ArrayBufferView):Void

send (data:Blob):Void

send (data:HTMLDocument):Void

send (data:String):Void

send (data:FormData):Void

Throws:

null DOMError

setRequestHeader (header:String, value:String):Void

Throws:

null DOMError

Static variables

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–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/XMLHttpRequest.html