KoolAjax Class [Javascript]

Summary

Methods Description
callback Send request to call a server function.
load Load any resource file.
loadCss Register a css file to page.
loadScript Load a .js file to page.
parseXml Parse a xml string to xml object.
sendRequest Parse a xml string to xml object.

Methods Detail

callbackTop

void callback(object  functionRequest, [function  onDone])

Make a callback to a server koolajax-enabled function. Return value can be retrieved from onDone function (asynchronous mode) or directly from callback function (synchonous mode). If onDone function is specified, asynchronous callback will be made. If onDone is not specified or set to null, synchonous callback will be made.

Show/Hide Code

Supported from version: 1.0.0.0

loadTop

void load(string  url, [function  onDone])

Load any content from url. Returned content can be retrieved from onDone function (asynchronous mode) or directly from callback function (synchonous mode). If onDone function is specified, asynchronous callback will be made. If onDone is not specified or set to null, synchonous callback will be made.

Show/Hide Code

Supported from version: 1.0.0.0

loadCssTop

void  loadCss(string cssUrl, function ondone)

Register a css file to page.

Show/Hide Code

Supported from version: 1.0.0.0

loadScriptTop

void  loadScript(string jsUrl, function ondone)

Load a .js file to page.

Show/Hide Code

Supported from version: 1.0.0.0

parseXmlTop

XmlDocument parseXml(string  xmlString)

Parse a xml string to xml object.

Show/Hide Code

Supported from version: 1.0.0.0

sendRequestTop

void sendRequest(object  request)

Parse a xml string to xml object.

Show/Hide Code

Supported from version: 1.0.0.0