service

service

new service()

This is the main service object which has simple ajax communication functions

Methods

(static) ajax(params)

This methods performs an AJAX request using the aim.ajax Object

Parameters:
Name Type Description
params Object

The options and parameters for the request

(static) determineResponder(state, id, data, callback)

Determine the response type for the request

Parameters:
Name Type Description
state String

The current state of the request

id String

The request id

data Object

The response data for the request

callback function

The optional callback function to execute

(static) error(requestId, data)

Override error handling

Parameters:
Name Type Description
requestId String

The name of the request

data Object

The response data object

(static) readystate(requestId, data)

Override readystate handling

Parameters:
Name Type Description
requestId String

The name of the request

data Object

The response data object

(static) result(requestId, data)

Request Result override

Parameters:
Name Type Description
requestId String

The name of the request

data Object

The response data object