An object used to retrieve data from a URL.
SDKs
- tvOS 9.0+
- Safari Desktop 10.0+
- Safari Mobile 3.0+
Frameworks
- TVMLKit JS
- Web
Kit JS
Declaration
interface XMLHttpRequest
An object used to retrieve data from a URL.
SDKs
Frameworks
interface XMLHttpRequest
abort
Cancels any network activity.
open
Sets the method, URL, and synchronous flag for a request.
send
Sends the request.
timeout
The amount of time, in milliseconds, before causing a request to time out.
XMLHttp Request
Creates a new XMLHttpRequest.
get All Response Headers
Returns all of the response headers.
get Response Header
Retrieves the field value from the response that is contained in the specified header.
set Request Header
Appends a header to the list of request headers.
metrics
A dictionary of keys used to request start and response start and end times.
ready State
The current state of the request.
response
The response entity body.
response Text
The response to the request.
response Type
The type of response.
response XML
The document response entity body.
status
The HTTP status code.
status Text
The HTTP status text.
onabort
A callback function called when a request is cancelled by the user.
onerror
A callback function that is called if the request fails due to an error.
onload
A callback function that is called when the request is successfully completed.
onloadend
A callback function that is called when the request is completed for any reason.
onloadstart
A callback function that is called when the request begins.
onreadystatechange
A callback function that is called when the ready
attribute changes.
ontimeout
A callback function that is called when a request times out.
abort
An event signifying the request has aborted.
error
An event signifying an error occurred during the request.
load
An event signifying the request was successfully loaded.
loadend
An event signifying the request has been completed.
loadstart
An event signifying the request has begun.
readystatechange
An event signifying that a state change has occurred.
Create full-fledged TVML documents by using data binding and queries on simplified TVML files.
Data Item
An object used to create observable objects from JSON objects for data binding.
Storage
An object used to store key-value-pair information.
Data Source
An interface that allows the system to detect and respond to changes in your data.
Load Indexes Request
A request created when the loadindexes
event is triggered.