Module stdweb::web [] [src]

A module with bindings to the Web APIs.

Modules

error

A module containing error types.

event

A module containing JavaScript DOM events.

html_element

A module containing HTML DOM elements.

Structs

ArrayBuffer

The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You cannot directly manipulate the contents of an ArrayBuffer; instead, you create an TypedArray to do it.

Blob

A reference to a JavaScript object which implements the IBlob interface.

CanvasRenderingContext2d

Used for drawing rectangles, text, images and other objects onto the canvas element.

Date

(JavaScript docs)

Document

The Document interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.

Element

A reference to a JavaScript object which implements the IElement interface.

EventListenerHandle

A handle to a particular event listener.

EventTarget

A reference to a JavaScript object which implements the IEventTarget interface.

FileReader

The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.

History

(JavaScript docs)

HtmlElement

A reference to a JavaScript object which implements the IHtmlElement interface.

Location

The Location interface represents the location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document::location and Window::location respectively.

MutationObserver

Provides a way to receive notifications about changes to the DOM.

MutationObserverHandle

A wrapper which ensures that memory is properly cleaned up when it's no longer needed.

MutationObserverInit

Specifies which changes should be observed for the target.

Node

A reference to a JavaScript object which implements the INode interface.

NodeList

NodeList objects are collections of nodes such as those returned by properties such as INode::child_nodes and the Document::query_selector_all method.

RequestAnimationFrameHandle

A handle to a pending animation frame request.

SocketCloseCode

Wrapper type around a CloseEvent code, indicating why the WebSocket was closed

Storage

The Storage interface of the Web Storage API provides access to the session storage or local storage for a particular domain.

StringMap

Used by the dataset HTML attribute to represent data for custom attributes added to elements.

TextNode

The TextNode represents the textual content of an IElement

TokenList

The TokenList represents a set of space-separated tokens.

TypedArray

JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data.

WebSocket

The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.

Window

The Window object represents a window containing a DOM document.

XmlHttpRequest

Use XmlHttpRequest (XHR) objects 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. XmlHttpRequest is used heavily in Ajax programming.

Enums

CloneKind

An enum which determines whenever the DOM Node's children will also be cloned or not.

CrossOriginSetting

Represents CORS (Cross Origin Resource Sharing) setting for an HTML element.

FileReaderResult

The result of a read operation performed with a FileReader.

MutationRecord

Contains information about an individual change to the DOM.

XhrReadyState

An enum indicating the state of the XmlHttpRequest.

Traits

IBlob

A blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format.

IElement

The IElement interface represents an object of a Document. This interface describes methods and properties common to all kinds of elements.

IEventTarget

IEventTarget is an interface implemented by objects that can receive events and may have listeners for them.

IHtmlElement

The IHtmlElement interface represents any HTML element.

INode

INode is an interface from which a number of DOM API object types inherit.

INonElementParentNode

The INonElementParentNode mixin contains methods and properties that are common to Document and DocumentFragment.

IParentNode

The ParentNode mixin contains methods and properties that are common to all types of Node objects that can have children.

IWindowOrWorker

The IWindowOrWorker mixin describes several features common to the Window and the global scope of web workers.

RenderingContext

Trait implemented by rendering contexts which can be obtained from a canvas.

Functions

alert

An alias for window.alert.

document

A global instance of Document.

set_timeout

An alias for window.set_timeout.

window

A global instance of Window.