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()

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

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: Byte read;

 

Byte status { get; }

 

var status: Byte { get{} }

 

Byte status { __get; }

 

ReadOnly Property status() As Byte

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: Byte read;

 

Byte status { get; }

 

var status: Byte { get{} }

 

Byte status { __get; }

 

ReadOnly Property status() As Byte

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()

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:

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: