The goog.ds.XmlHttpDataSource Class

goog.ds.XmlHttpDataSource
> goog.ds.XmlDataSource
> goog.ds.DataNode

goog.ds.XmlHttpDataSource(uri, name)

Data source whose backing is an XMLHttpRequest, A URI of an empty string will mean that no request is made and the data source will be a single, empty node.

uri {(string,goog.Uri)}
URL of the XMLHttpRequest.
name {string}
Name of the datasource. implements goog.ds.XmlHttpDataSource.

.get(var_args)

Inherited from goog.ds.XmlDataSource .

Get the value of the node

var_args {...?}
Do not check arity of arguments, because some subclasses require args.
returns {Object}
The value of the node, or null if no value.

.getChildNode(name)

Inherited from goog.ds.XmlDataSource .

Gets a named child node of the current node

name {string}
The node name.
returns {goog.ds.DataNode}
The child node, or null if no node of this name exists.

.getChildNodeValue(name)

Inherited from goog.ds.XmlDataSource .

Gets the value of a child node

name {string}
The node name.
returns {*}
The value of the node, or null if no value or the child node doesn't exist.

.getChildNodes(opt_selector)

Inherited from goog.ds.XmlDataSource .

Gets all of the child nodes of the current node. Should return an empty DataNode list if no child nodes.

opt_selector {string=}
String selector to choose child nodes.
returns {goog.ds.DataNodeList}
The child nodes.

.getDataName()

Inherited from goog.ds.XmlDataSource .

Get the name of the node relative to the parent node

returns {string}
The name of the node.

.getDataPath()

Inherited from goog.ds.XmlDataSource .

Gets the a qualified data path to this node

returns {string}
The data path.

.getLoadState()

Gets the state of the backing data for this node

returns {goog.ds.LoadState}
The state.

.isList()

Inherited from goog.ds.DataNode .

Whether the value of this node is a homogeneous list of data

returns {boolean}
True if a list.

.load()

Load or reload the backing data for this node. Fires the XMLHttpRequest

.set(value)

Inherited from goog.ds.XmlDataSource .

Set the value of the node

value {*}
The new value of the node.

.setChildNode(name, value)

Inherited from goog.ds.DataNode .

Sets a named child node of the current node.

name {string}
The node name.
value {Object}
The value to set, can be DataNode, object, property, or null. If value is null, removes the child node.
returns {Object}
The child node, if the node was set.

.setDataName(name)

Inherited from goog.ds.XmlDataSource .

Setthe name of the node relative to the parent node

name {string}
The name of the node.