Class AjaxRequest

Object
   |
   +--AjaxRequest

class AjaxRequest

Defined in ajax.js


Constructor Summary
AjaxRequest ()
           

Cross-browser implementation to obtain and process a XMLHttpRequest instance.

 
Method Summary
 void doJSONRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)
          

Called by the client javascript code to initiate a request that is going to return a JSON text string that is to be converted into a JSON object.

 void doTextRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)
          

Called by the client javascript code to initiate a request that is going to return a text string OR a request that returns an XML document that is desired as a string, rather than a DOM object.

 void doXMLRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)
          

Called by the client javascript code to initiate a request that is going to return an XML document.

 DOMNode getNode(<String> nodeName, <int> index)
          

Convenience function that attempts to retrieve an XML DOMNode from the value variable if:

  1. It is an XML DOM object
  2. It has at least one tag with the given name.
 DOMNode getNodeByParent(<DomNode> parentNode, <String> nodeName, <int> index)
          

Convenience function that attempts to retrieve an XML value from the value variable if:

  1. It is an XML DOM object
  2. It has at least one tag with the given name.
 int getNodeCount(<String> nodeName)
          

Convenience function that attempts to retrieve the number of XML elements with the given name that exist in the current value object.

 int getNodeCountByParent(parentNode, <String> nodeName)
          

Convenience function that attempts to retrieve the number of XML elements with the given name that exist under the parent node.

 int getResponseCode()
          

Returns the HTTP response code of the last XMHttpRequest made, or null if none have been made.

 Variant getValue()
          

Convenience function that returns the value returned by the request.

 String getValueForNode(<String> nodeName, <int> index)
          

Convenience function that attempts to retrieve an XML value from the value variable if:

  1. It is an XML DOM object
  2. It has at least one tag with the given name.
 String getValueForNodeByParent(<DomNode> parentNode, <String> nodeName, <int> index)
          

Convenience function that attempts to retrieve an XML value from the value variable if:

  1. It is an XML DOM object
  2. It has at least one tag with the given name.
 Boolean isCompleted()
          

Convenience method that returns the completed status of the request.

 boolean isIE()
          

Returns if the last detected browser was IE or not.

 void log(message, severity)
          

Creates a floating window (if necessary) and adds a message to the log.

 void setDebugging(show)
          

Turns the debugging window on or off.

 void setDisplayMessage(text)
          

Sets the display message that is presented while an AjaxRequest is processing.

 XML DOM Object transformValueInto(<String> url, element)
          

Convenience function that transforms the current XML DOM value based on the XSL file specified in the url, and places it's contents in the suggested DOM element.

Constructor Detail

AjaxRequest

AjaxRequest()

Method Detail

doJSONRequest

void doJSONRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)

doTextRequest

void doTextRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)

doXMLRequest

void doXMLRequest(<String> url, <String> method, <String> parameters, <Function> callback, <Boolean> asynchronous)

getNode

DOMNode getNode(<String> nodeName, <int> index)

getNodeByParent

DOMNode getNodeByParent(<DomNode> parentNode, <String> nodeName, <int> index)

getNodeCount

int getNodeCount(<String> nodeName)

getNodeCountByParent

int getNodeCountByParent(parentNode, <String> nodeName)

getResponseCode

int getResponseCode()

getValue

Variant getValue()

getValueForNode

String getValueForNode(<String> nodeName, <int> index)

getValueForNodeByParent

String getValueForNodeByParent(<DomNode> parentNode, <String> nodeName, <int> index)

isCompleted

Boolean isCompleted()

isIE

boolean isIE()

log

void log(message, severity)

setDebugging

void setDebugging(show)

setDisplayMessage

void setDisplayMessage(text)

transformValueInto

XML DOM Object transformValueInto(<String> url, element)


Documentation generated by JSDoc on Tue Feb 27 10:07:22 2007