Class Index | File Index

Classes


Namespace aV.AJAX.XML

Introduces some useful functions for XML parsing, which are returned by the XMLHttpRequest objects's responseXML property.
Defined in: aV.main.ajax.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Introduces some useful functions for XML parsing, which are returned by the XMLHttpRequest objects's responseXML property.
Method Summary
Method Attributes Method Name and Description
<static>  
aV.AJAX.XML.getValue(mainItem, nodeName, defaultVal)
Tries to extract the node value whose name is given with nodeName and is contained by mainItem node.
<static>  
aV.AJAX.XML.setValue(mainItem, nodeName, val)
Tries to set the node value whose name is given with nodeName and is contained by mainItem node.
<static>  
aV.AJAX.XML.toArray(collection)
Converts an element/node collection, which acts as an array usually, to an actual array and returns it, which allows developers to use array-spesific functions.
Namespace Detail
aV.AJAX.XML
Introduces some useful functions for XML parsing, which are returned by the XMLHttpRequest objects's responseXML property.
Method Detail
<static> {String} aV.AJAX.XML.getValue(mainItem, nodeName, defaultVal)
Tries to extract the node value whose name is given with nodeName and is contained by mainItem node. Returns the defaultVal if any error occurs.
Parameters:
{Object} mainItem
The main node item which holds the sub nodes and their values.
{String} nodeName
Name of the sub node whose value will be extracted from the mainItem.
{String} defaultVal Optional
The default value which will be returned if the sub node whose name is given in nodeName is not found.
Returns:
{String} The value of the node whose name is given with nodeName and which is contained by mainItem node.

<static> {String} aV.AJAX.XML.setValue(mainItem, nodeName, val)
Tries to set the node value whose name is given with nodeName and is contained by mainItem node. Returns false if any error occurs.
Parameters:
{Object} mainItem
The main node item which holds the sub nodes and their values.
{String} nodeName
Name of the sub node whose value will be set.
{String} val
The new value of the sub node whose name is given in nodeName.
Returns:
{String} The value set by the function is returned. If an error occures, the function returns false.

<static> {HTMLElementObject[]} aV.AJAX.XML.toArray(collection)
Converts an element/node collection, which acts as an array usually, to an actual array and returns it, which allows developers to use array-spesific functions.
Parameters:
{HTMLCollectionObject} collection
The collection which will be converted to array.
Returns:
{HTMLElementObject[]} The array version of the given collection.

Documentation generated by JsDoc Toolkit 2.0.1 on Sun Aug 03 2008 14:14:38 GMT+0300 (EEST)