API DOCS

DOCS & TUTORIALS » API DOCS » xajax_js » xajax_core_uncompressed.js » xajax.tools

Class: xajax.tools



This contains utility functions which are used throughout
the xajax core.

variables

functions

xajax.tools.$

xajax.tools.$ = function(sId) { }

Shorthand for finding a uniquely named element within
the document.


xajax.tools.doubleQuotes

xajax.tools.doubleQuotes = function(haystack) { }

Replace all occurances of the single quote character with a double
quote character.


xajax.tools.singleQuotes

xajax.tools.singleQuotes = function(haystack) { }

Replace all occurances of the double quote character with a single
quote character.

haystack - The source string to be scanned.


xajax.tools._escape

xajax.tools._escape = function(data) { }

Determine if the specified value contains special characters and
create a CDATA section so the value can be safely transmitted.


xajax.tools._objectToXML

xajax.tools._objectToXML = function(obj, guard) { }

Convert a javascript object or array into XML suitable for
transmission to the server.


xajax.tools._enforceDataType

xajax.tools._enforceDataType = function(value) { }

Ensure that the javascript variable created is of the correct data type.


xajax.tools._nodeToObject

xajax.tools._nodeToObject = function(node) { }

Deserialize a javascript object from an XML node.


xajax.tools.getRequestObject

xajax.tools.getRequestObject = function() { }

Construct an XMLHttpRequest object dependent on the capabilities
of the browser.


xajax.tools.getBrowserHTML

xajax.tools.getBrowserHTML = function(sValue) { }

Insert the specified string of HTML into the document, then
extract it. This gives the browser the ability to validate
the code and to apply any transformations it deems appropriate.


xajax.tools.willChange

xajax.tools.willChange = function(element, attribute, newData) { }

Tests to see if the specified data is the same as the current
value of the element's attribute.


xajax.tools.getFormValues

xajax.tools.getFormValues = function(parent) { }

Build an associative array of form elements and their values from
the specified form.


xajax.tools._getFormValues

xajax.tools._getFormValues = function(aFormValues, children, submitDisabledElements, prefix) { }

Used internally by to recursively get the value
of form elements. This function will extract all form element values
regardless of the depth of the element within the form.

xajax.tools._getFormValue

xajax.tools._getFormValue = function(aFormValues, child, submitDisabledElements, prefix) { }

Used internally by to extract a single form value.
This will detect the type of element (radio, checkbox, multi-select) and
add it's value(s) to the form values array.

xajax.tools.stripOnPrefix

xajax.tools.stripOnPrefix = function(sEventName) { }

Detect, and if found, remove the prefix 'on' from the specified
string. This is used while working with event handlers.


xajax.tools.addOnPrefix

xajax.tools.addOnPrefix = function(sEventName) { }

Detect, and add if not found, the prefix 'on' from the specified
string. This is used while working with event handlers.


 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional