xajax_core.jsThis file contains the definition of the main xajax javascript core. This is the client side code which runs on the web browser or similar web enabled application. Include this in the HEAD of each page for which you wish to use xajax. Summary
xajax core javascript libraryPlease see copyright.inc.php for a detailed description, copyright and license information. xajax. configThis class contains all the default configuration settings. These are application level settings; however, they can be overridden by including a xajax.config definition prior to including the xajax_core.js file, or by specifying the appropriate configuration options on a per call basis. Summary
defaultMode
The request mode.
defaultMethod
The method used to send requests to the server.
defaultReturnValue
The value returned by xajax.call when in asynchronous mode, or when a syncrhonous call does not specify the return value. xajax. config. statusProvides support for updating the browser’s status bar during the request process. By splitting the status bar functionality into an object, the xajax developer has the opportunity to customize the status bar messages prior to sending xajax requests. Summary
xajax. config. cursorProvides the base functionality for updating the browser’s cursor during requests. By splitting this functionalityh into an object of it’s own, xajax developers can now customize the functionality prior to submitting requests. Summary
xajax. toolsThis contains utility functions which are used throughout the xajax core. Summary
$
Shorthand for finding a uniquely named element within the document.
Returns
NoteThis function uses the xajax.config.baseDocument which allows xajax to operate on the main window document as well as documents from contained iframes and child windows. See also_escape
Determine if the specified value contains special characters and create a CDATA section so the value can be safely transmitted.
Returns
NoteWhen the specified object is NOT a string, the value is returned as is. _objectToXML
Convert a javascript object or array into XML suitable for transmission to the server.
Returns
See alsogetBrowserHTML
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.
ReturnsThe (potentially modified) html code or text. willChange
Tests to see if the specified data is the same as the current value of the element’s attribute.
Returns
getFormValues
Build an associative array of form elements and their values from the specified form.
ReturnsAn associative array of form element id and value. _getFormValues
Used internally by xajax.tools.getFormValues 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. _getFormValue
Used internally by xajax.tools._getFormValues 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. queueThis contains the code and variables for building, populating and processing First In Last Out (FILO) buffers. Summary
retry
Maintains a retry counter for the given object.
Returns
setWakeup
Set or reset a timeout that is used to restart processing of the queue. This allows the queue to asynchronously wait for an event to occur (giving the browser time to process pending events, like loading files)
process
While entries exist in the queue, pull and entry out and process it’s command. When a command returns false, the processing is halted.
Returns
Notes
pushFront
Push a new object into the head of the buffer maintained by the specified queue object. This effectively pushes an object to the front of the queue... it will be processed first.
xml
Parse the response XML into a series of commands. The commands are constructed by calling xajax.parseAttributes and xajax.parseChildren.
xajax.jsContains the functions for javascript file and function manipulation. Summary
|