XMLHttpRequest

Overview

XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.

Location

 

constructor

 

constructor

 

XMLHttpRequest()

 

init()

 

XMLHttpRequest()

 

Sub New()

abort

Aborts the request if it has already been sent.

 

method abort

 

void abort()

 

func abort()

 

void abort()

 

Sub abort()

addEventListener (dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(partype: dynamic; parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

Sub addEventListener(partype As dynamic, parlistener As dynamic)

Parameters:

  • partype:
  • parlistener:

addEventListener (dynamic, dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)

Parameters:

  • type:
  • listener:
  • options:

addEventListener (dynamic, dynamic, Boolean)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)

Parameters:

  • type:
  • listener:
  • useCapture:

channel

 

property channel: dynamic read;

 

dynamic channel { get; }

 

var channel: dynamic { get{} }

 

dynamic channel { __get; }

 

ReadOnly Property channel() As dynamic

getAllResponseHeaders

Returns all the response headers, separated by CRLF, as a string, or null if no response has been received.

 

method getAllResponseHeaders: String

 

String getAllResponseHeaders()

 

func getAllResponseHeaders() -> String

 

String getAllResponseHeaders()

 

Function getAllResponseHeaders() As String

getResponseHeader

Returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response.

 

method getResponseHeader(parheaderName: dynamic): String

 

String getResponseHeader(dynamic parheaderName)

 

func getResponseHeader(_ parheaderName: dynamic) -> String

 

String getResponseHeader(dynamic parheaderName)

 

Function getResponseHeader(parheaderName As dynamic) As String

Parameters:

  • parheaderName:

mozAnon

 

property mozAnon: Boolean read;

 

Boolean mozAnon { get; }

 

var mozAnon: Boolean { get{} }

 

Boolean mozAnon { __get; }

 

ReadOnly Property mozAnon() As Boolean

mozBackgroundRequest

 

property mozBackgroundRequest: Boolean read write;

 

Boolean mozBackgroundRequest { get; set; }

 

var mozBackgroundRequest: Boolean { get{} set{} }

 

Boolean mozBackgroundRequest { __get; __set; }

 

Property mozBackgroundRequest() As Boolean

mozSystem

 

property mozSystem: Boolean read;

 

Boolean mozSystem { get; }

 

var mozSystem: Boolean { get{} }

 

Boolean mozSystem { __get; }

 

ReadOnly Property mozSystem() As Boolean

multipart

 

property multipart: Boolean read write;

 

Boolean multipart { get; set; }

 

var multipart: Boolean { get{} set{} }

 

Boolean multipart { __get; __set; }

 

Property multipart() As Boolean

onabort

 

property onabort: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onabort { get; set; }

 

var onabort: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onabort { __get; __set; }

 

Property onabort() As WebAssemblyDelegate

onerror

 

property onerror: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onerror { get; set; }

 

var onerror: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onerror { __get; __set; }

 

Property onerror() As WebAssemblyDelegate

onload

 

property onload: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onload { get; set; }

 

var onload: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onload { __get; __set; }

 

Property onload() As WebAssemblyDelegate

onloadend

 

property onloadend: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onloadend { get; set; }

 

var onloadend: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onloadend { __get; __set; }

 

Property onloadend() As WebAssemblyDelegate

onloadstart

 

property onloadstart: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onloadstart { get; set; }

 

var onloadstart: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onloadstart { __get; __set; }

 

Property onloadstart() As WebAssemblyDelegate

onprogress

 

property onprogress: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onprogress { get; set; }

 

var onprogress: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onprogress { __get; __set; }

 

Property onprogress() As WebAssemblyDelegate

onreadystatechange

 

property onreadystatechange: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onreadystatechange { get; set; }

 

var onreadystatechange: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onreadystatechange { __get; __set; }

 

Property onreadystatechange() As WebAssemblyDelegate

ontimeout

 

property ontimeout: WebAssemblyDelegate read write;

 

WebAssemblyDelegate ontimeout { get; set; }

 

var ontimeout: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate ontimeout { __get; __set; }

 

Property ontimeout() As WebAssemblyDelegate

open

 

method open(method: String; url: String; Async: Boolean; user: String; password: String)

 

void open(String method, String url, Boolean Async, String user, String password)

 

func open(_ method: String, _ url: String, _ Async: Boolean, _ user: String, _ password: String)

 

void open(String method, String url, Boolean Async, String user, String password)

 

Sub open(method As String, url As String, Async As Boolean, user As String, password As String)

Parameters:

  • method:
  • url:
  • Async:
  • user:
  • password:

overrideMimeType

Overrides the MIME type returned by the server.

 

method overrideMimeType(parmimeType: dynamic): String

 

String overrideMimeType(dynamic parmimeType)

 

func overrideMimeType(_ parmimeType: dynamic) -> String

 

String overrideMimeType(dynamic parmimeType)

 

Function overrideMimeType(parmimeType As dynamic) As String

Parameters:

  • parmimeType:

readyState

 

property readyState: Byte read;

 

Byte readyState { get; }

 

var readyState: Byte { get{} }

 

Byte readyState { __get; }

 

ReadOnly Property readyState() As Byte

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture:

response

 

property response: dynamic read;

 

dynamic response { get; }

 

var response: dynamic { get{} }

 

dynamic response { __get; }

 

ReadOnly Property response() As dynamic

responseText

 

property responseText: String read;

 

String responseText { get; }

 

var responseText: String { get{} }

 

String responseText { __get; }

 

ReadOnly Property responseText() As String

responseType

 

property responseType: Int32 read write;

 

Int32 responseType { get; set; }

 

var responseType: Int32 { get{} set{} }

 

Int32 responseType { __get; __set; }

 

Property responseType() As Int32

responseURL

 

property responseURL: String read;

 

String responseURL { get; }

 

var responseURL: String { get{} }

 

String responseURL { __get; }

 

ReadOnly Property responseURL() As String

responseXML

 

property responseXML: Document read;

 

Document responseXML { get; }

 

var responseXML: Document { get{} }

 

Document responseXML { __get; }

 

ReadOnly Property responseXML() As Document

send

Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent.

 

method send(parbody: dynamic)

 

void send(dynamic parbody)

 

func send(_ parbody: dynamic)

 

void send(dynamic parbody)

 

Sub send(parbody As dynamic)

Parameters:

  • parbody:

setRequestHeader

Sets the value of an HTTP request header. You must call setRequestHeader()after open(), but before send().

 

method setRequestHeader(parheader: dynamic; parvalue: dynamic)

 

void setRequestHeader(dynamic parheader, dynamic parvalue)

 

func setRequestHeader(_ parheader: dynamic, _ parvalue: dynamic)

 

void setRequestHeader(dynamic parheader, dynamic parvalue)

 

Sub setRequestHeader(parheader As dynamic, parvalue As dynamic)

Parameters:

  • parheader:
  • parvalue:

status

 

property status: Int32 read;

 

Int32 status { get; }

 

var status: Int32 { get{} }

 

Int32 status { __get; }

 

ReadOnly Property status() As Int32

statusText

 

property statusText: String read;

 

String statusText { get; }

 

var statusText: String { get{} }

 

String statusText { __get; }

 

ReadOnly Property statusText() As String

timeout

 

property timeout: Int32 read write;

 

Int32 timeout { get; set; }

 

var timeout: Int32 { get{} set{} }

 

Int32 timeout { __get; __set; }

 

Property timeout() As Int32

upload

 

property upload: dynamic read write;

 

dynamic upload { get; set; }

 

var upload: dynamic { get{} set{} }

 

dynamic upload { __get; __set; }

 

Property upload() As dynamic

withCredentials

 

property withCredentials: Boolean read write;

 

Boolean withCredentials { get; set; }

 

var withCredentials: Boolean { get{} set{} }

 

Boolean withCredentials { __get; __set; }

 

Property withCredentials() As Boolean

 

channel

 

property channel: dynamic read;

 

dynamic channel { get; }

 

var channel: dynamic { get{} }

 

dynamic channel { __get; }

 

ReadOnly Property channel() As dynamic

mozAnon

 

property mozAnon: Boolean read;

 

Boolean mozAnon { get; }

 

var mozAnon: Boolean { get{} }

 

Boolean mozAnon { __get; }

 

ReadOnly Property mozAnon() As Boolean

mozBackgroundRequest

 

property mozBackgroundRequest: Boolean read write;

 

Boolean mozBackgroundRequest { get; set; }

 

var mozBackgroundRequest: Boolean { get{} set{} }

 

Boolean mozBackgroundRequest { __get; __set; }

 

Property mozBackgroundRequest() As Boolean

mozSystem

 

property mozSystem: Boolean read;

 

Boolean mozSystem { get; }

 

var mozSystem: Boolean { get{} }

 

Boolean mozSystem { __get; }

 

ReadOnly Property mozSystem() As Boolean

multipart

 

property multipart: Boolean read write;

 

Boolean multipart { get; set; }

 

var multipart: Boolean { get{} set{} }

 

Boolean multipart { __get; __set; }

 

Property multipart() As Boolean

onabort

 

property onabort: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onabort { get; set; }

 

var onabort: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onabort { __get; __set; }

 

Property onabort() As WebAssemblyDelegate

onerror

 

property onerror: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onerror { get; set; }

 

var onerror: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onerror { __get; __set; }

 

Property onerror() As WebAssemblyDelegate

onload

 

property onload: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onload { get; set; }

 

var onload: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onload { __get; __set; }

 

Property onload() As WebAssemblyDelegate

onloadend

 

property onloadend: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onloadend { get; set; }

 

var onloadend: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onloadend { __get; __set; }

 

Property onloadend() As WebAssemblyDelegate

onloadstart

 

property onloadstart: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onloadstart { get; set; }

 

var onloadstart: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onloadstart { __get; __set; }

 

Property onloadstart() As WebAssemblyDelegate

onprogress

 

property onprogress: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onprogress { get; set; }

 

var onprogress: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onprogress { __get; __set; }

 

Property onprogress() As WebAssemblyDelegate

onreadystatechange

 

property onreadystatechange: WebAssemblyDelegate read write;

 

WebAssemblyDelegate onreadystatechange { get; set; }

 

var onreadystatechange: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate onreadystatechange { __get; __set; }

 

Property onreadystatechange() As WebAssemblyDelegate

ontimeout

 

property ontimeout: WebAssemblyDelegate read write;

 

WebAssemblyDelegate ontimeout { get; set; }

 

var ontimeout: WebAssemblyDelegate { get{} set{} }

 

WebAssemblyDelegate ontimeout { __get; __set; }

 

Property ontimeout() As WebAssemblyDelegate

readyState

 

property readyState: Byte read;

 

Byte readyState { get; }

 

var readyState: Byte { get{} }

 

Byte readyState { __get; }

 

ReadOnly Property readyState() As Byte

response

 

property response: dynamic read;

 

dynamic response { get; }

 

var response: dynamic { get{} }

 

dynamic response { __get; }

 

ReadOnly Property response() As dynamic

responseText

 

property responseText: String read;

 

String responseText { get; }

 

var responseText: String { get{} }

 

String responseText { __get; }

 

ReadOnly Property responseText() As String

responseType

 

property responseType: Int32 read write;

 

Int32 responseType { get; set; }

 

var responseType: Int32 { get{} set{} }

 

Int32 responseType { __get; __set; }

 

Property responseType() As Int32

responseURL

 

property responseURL: String read;

 

String responseURL { get; }

 

var responseURL: String { get{} }

 

String responseURL { __get; }

 

ReadOnly Property responseURL() As String

responseXML

 

property responseXML: Document read;

 

Document responseXML { get; }

 

var responseXML: Document { get{} }

 

Document responseXML { __get; }

 

ReadOnly Property responseXML() As Document

status

 

property status: Int32 read;

 

Int32 status { get; }

 

var status: Int32 { get{} }

 

Int32 status { __get; }

 

ReadOnly Property status() As Int32

statusText

 

property statusText: String read;

 

String statusText { get; }

 

var statusText: String { get{} }

 

String statusText { __get; }

 

ReadOnly Property statusText() As String

timeout

 

property timeout: Int32 read write;

 

Int32 timeout { get; set; }

 

var timeout: Int32 { get{} set{} }

 

Int32 timeout { __get; __set; }

 

Property timeout() As Int32

upload

 

property upload: dynamic read write;

 

dynamic upload { get; set; }

 

var upload: dynamic { get{} set{} }

 

dynamic upload { __get; __set; }

 

Property upload() As dynamic

withCredentials

 

property withCredentials: Boolean read write;

 

Boolean withCredentials { get; set; }

 

var withCredentials: Boolean { get{} set{} }

 

Boolean withCredentials { __get; __set; }

 

Property withCredentials() As Boolean

 

constructor

 

constructor

 

XMLHttpRequest()

 

init()

 

XMLHttpRequest()

 

Sub New()

abort

Aborts the request if it has already been sent.

 

method abort

 

void abort()

 

func abort()

 

void abort()

 

Sub abort()

addEventListener (dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(partype: dynamic; parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

func addEventListener(_ partype: dynamic, _ parlistener: dynamic)

 

void addEventListener(dynamic partype, dynamic parlistener)

 

Sub addEventListener(partype As dynamic, parlistener As dynamic)

Parameters:

  • partype:
  • parlistener:

addEventListener (dynamic, dynamic, dynamic)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)

 

void addEventListener(dynamic type, dynamic listener, dynamic options)

 

Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)

Parameters:

  • type:
  • listener:
  • options:

addEventListener (dynamic, dynamic, Boolean)    (declared in EventTarget)

Registers an event handler of a specific event type on the EventTarget.

 

method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)

 

void addEventListener(dynamic type, dynamic listener, Boolean useCapture)

 

Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)

Parameters:

  • type:
  • listener:
  • useCapture:

getAllResponseHeaders

Returns all the response headers, separated by CRLF, as a string, or null if no response has been received.

 

method getAllResponseHeaders: String

 

String getAllResponseHeaders()

 

func getAllResponseHeaders() -> String

 

String getAllResponseHeaders()

 

Function getAllResponseHeaders() As String

getResponseHeader

Returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response.

 

method getResponseHeader(parheaderName: dynamic): String

 

String getResponseHeader(dynamic parheaderName)

 

func getResponseHeader(_ parheaderName: dynamic) -> String

 

String getResponseHeader(dynamic parheaderName)

 

Function getResponseHeader(parheaderName As dynamic) As String

Parameters:

  • parheaderName:

open

 

method open(method: String; url: String; Async: Boolean; user: String; password: String)

 

void open(String method, String url, Boolean Async, String user, String password)

 

func open(_ method: String, _ url: String, _ Async: Boolean, _ user: String, _ password: String)

 

void open(String method, String url, Boolean Async, String user, String password)

 

Sub open(method As String, url As String, Async As Boolean, user As String, password As String)

Parameters:

  • method:
  • url:
  • Async:
  • user:
  • password:

overrideMimeType

Overrides the MIME type returned by the server.

 

method overrideMimeType(parmimeType: dynamic): String

 

String overrideMimeType(dynamic parmimeType)

 

func overrideMimeType(_ parmimeType: dynamic) -> String

 

String overrideMimeType(dynamic parmimeType)

 

Function overrideMimeType(parmimeType As dynamic) As String

Parameters:

  • parmimeType:

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic

 

dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)

 

Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic

Parameters:

  • partype:
  • parlistener:
  • paroptions:
  • paruseCapture:

send

Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent.

 

method send(parbody: dynamic)

 

void send(dynamic parbody)

 

func send(_ parbody: dynamic)

 

void send(dynamic parbody)

 

Sub send(parbody As dynamic)

Parameters:

  • parbody:

setRequestHeader

Sets the value of an HTTP request header. You must call setRequestHeader()after open(), but before send().

 

method setRequestHeader(parheader: dynamic; parvalue: dynamic)

 

void setRequestHeader(dynamic parheader, dynamic parvalue)

 

func setRequestHeader(_ parheader: dynamic, _ parvalue: dynamic)

 

void setRequestHeader(dynamic parheader, dynamic parvalue)

 

Sub setRequestHeader(parheader As dynamic, parvalue As dynamic)

Parameters:

  • parheader:
  • parvalue: