Class NaosAjax
Defined in: ajax.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
NaosAjax(requests, domForms, callbackCreateData)
Creates a new NaosAjax request object.
|
| Field Attributes | Field Name and Description |
|---|---|
| <private> <static> |
NaosAjax.lastGuiEffect
Pointer to the last executed UI effect.
|
| <private> <static> |
NaosAjax.requestQueue
The request queue with schedules NaosAjax request objects.
|
| Method Attributes | Method Name and Description |
|---|---|
| <private> |
_send()
An internal function which actually sends the NaosAjax request.
|
| <private> <static> |
NaosAjax.activateRequest(naosajax)
Schedules a NaosAjax object by pushing it to the request queue.
|
| <private> |
callbackDebug(ajax)
This function gets called by the Prototype Ajax.Request object for debugging.
|
| <private> |
callbackError(ajax)
This function processes an unsuccessful AJAX request.
|
| <private> |
callbackOk(ajax)
This function processes a successful AJAX request.
|
| <private> <static> |
NaosAjax.cancelLastGuiEffect()
Cancels the currently activated UI effect.
|
| <private> <static> |
NaosAjax.finishRequest(naosajax)
Takes care of processed NaosAjax requests.
|
|
send()
Schedules the created NaosAjax object for sending.
|
Class Detail
NaosAjax(requests, domForms, callbackCreateData)
Creates a new NaosAjax request object. This object allows
you to communicate with the PHP part of the Naos Framework.
- Parameters:
- {Object|Array} requests
- Defines the actual request. Format {view1: {node: ..., module: ..., controller: ..., action: ..., parameter: {p1: ..., ...}}, ...}
- {Array} domForms
- An array of HTML form objects, which should be send with this request.
- {function} callbackCreateData
- When defined this function will be called with the dom tree which will be send as request. This allows you to modify the dom tree before it gets send if necessary.
Field Detail
<private> <static>
{null|Effect}
NaosAjax.lastGuiEffect
Pointer to the last executed UI effect.
<private> <static>
{Array}
NaosAjax.requestQueue
The request queue with schedules NaosAjax request objects.
Method Detail
<private>
_send()
An internal function which actually sends the NaosAjax request. It
utilizes the Prototype Ajax.Request class.
<private> <static>
NaosAjax.activateRequest(naosajax)
Schedules a NaosAjax object by pushing it to the request queue. Activates
the request at once when no pending request is available. Takes care of the
UI notification stuff.
- Parameters:
- {NaosAjax} naosajax
- The NaosAjax object which should be scheduled.
<private>
callbackDebug(ajax)
This function gets called by the Prototype Ajax.Request object for debugging.
- Parameters:
- {Ajax.Response} ajax
- Contains the response data.
<private>
callbackError(ajax)
This function processes an unsuccessful AJAX request. It gets called by
the Prototype Ajax.Request object.
- Parameters:
- {Ajax.Response} ajax
- Contains the response data.
<private>
callbackOk(ajax)
This function processes a successful AJAX request. It gets called by
the Prototype Ajax.Request object.
- Parameters:
- {Ajax.Response} ajax
- Contains the response data.
<private> <static>
NaosAjax.cancelLastGuiEffect()
Cancels the currently activated UI effect.
<private> <static>
NaosAjax.finishRequest(naosajax)
Takes care of processed NaosAjax requests. Activates the next scheduled request
if available. Takes care of the UI notification stuff.
- Parameters:
- {NaosAjax} naosajax
- The NaosAjax object which is processed already.
send()
Schedules the created NaosAjax object for sending.