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 also:

Static variables

@:value(4)staticinlineread onlyDONE:Int = 4

@:value(2)staticinlineread onlyHEADERS_RECEIVED:Int = 2

@:value(3)staticinlineread onlyLOADING:Int = 3

@:value(1)staticinlineread onlyOPENED:Int = 1

@:value(0)staticinlineread onlyUNSENT:Int = 0

Constructor

new(ignored:String)

new(?params:Dynamic)

Throws:

null

DOMError

Variables

read onlyreadyState:Int

read onlyresponse: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 onlystatus:Int

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

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

Throws:

null

DOMError

Inherited Variables

Inherited Methods

Defined by EventTarget

@:value({ capture : false })addEventListener(type:String, listener:Function, capture:Bool = false):Void

@:value({ capture : false })addEventListener(type:String, listener:EventListener, capture:Bool = false, ?wantsUntrusted:Bool):Void

Throws:

null

DOMError

dispatchEvent(event:Event):Bool

Throws:

null

DOMError

@:value({ capture : false })removeEventListener(type:String, listener:Function, capture:Bool = false):Void

@:value({ capture : false })removeEventListener(type:String, listener:EventListener, capture:Bool = false):Void

Throws:

null

DOMError