|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.Ajax
Utilities for use with the standard f:ajax tag
Defined in core.js
Constructor Summary | |
CAF.Ajax
()
|
Method Summary | |
<static> void
|
afterCompleted(id, refreshedElementIds)
A CAF.Command.actionCompleteListener event is raised to notify any listeners that we have completed the action. |
<static> void
|
afterUpdate(id)
Do some extra activities after an element has been updated 1. |
<static> Object
|
beforeRefresh(data, toRefresh)
Call before a refresh action to calculate all the element that may be replaced by the refresh |
<static> Object
|
beforeSubmit(event, toExecute)
This function is usually used as the "onclick" handler of the command control. |
<static> Object
|
clientSideValidate(event, toValidate)
Performs Client-Side validation (when enabled). |
<static> Object
|
handleResponse(transport, options)
Parse and handle the response for a partial/ajax request. |
<static> void
|
onError(data, finishedFn)
This function is usually used as the "onerror" handler of the CAF.Ajax.f = ajax;tag. |
<static> void
|
onEvent(data, eventType, toRefresh, finshedFn)
This function is usually used as the "onevent" handler of the CAF.Ajax.f = ajax;tag. |
<static> Object
|
raiseActionEvent(event)
A CAF.Command.actionListener event is raised to notify any listeners that we are about to invoke the action. |
<static> void
|
startProgress(data, toRefresh)
Begin the progress overlay for the elements being refreshed |
<static> void
|
stopProgress(data, eventType, toRefresh)
End the progress overlay for the elements being refreshed |
Constructor Detail |
CAF.Ajax()
Method Detail |
<static> void afterCompleted(id, refreshedElementIds)
id
- the of of the control that triggered the call
<static> void afterUpdate(id)
id
- the id of the element that was just updated
<static> Object beforeRefresh(data, toRefresh)
data
- the data object from the ajax lifecycle
toRefresh
- (optional) the ids that the ajax call is refreshing (array or space seperated string)
<static> Object beforeSubmit(event, toExecute)
event
- the click event that triggered the call
toExecute
- (optional) the ids that the ajax call is executing
<static> Object clientSideValidate(event, toValidate)
event
- the event that triggered the call
toValidate
- (optional) the ids that the ajax call is executing
<static> Object handleResponse(transport, options)
transport
- the request transport
<static> void onError(data, finishedFn)
data
- the data object from the ajax lifecycle
finshedFn
- (optional) function to call after processing has finished
<static> void onEvent(data, eventType, toRefresh, finshedFn)
data
- the data object from the ajax lifecycle
eventType
- (optional) if the CAF.Ajax.f = ajax;call is not for the 'onclick' event, specify the event type as an argument so it can help resolve what elements were in progress.
toRefresh
- (optional) the ids that the ajax call is refreshing
finshedFn
- (optional) function to call after processing has finished
<static> Object raiseActionEvent(event)
event
- the event that triggered the call
<static> void startProgress(data, toRefresh)
data
- the data object from the ajax lifecycle
toRefresh
- (optional) the ids that the ajax call is refreshing (array or space seperated string)
<static> void stopProgress(data, eventType, toRefresh)
data
- the data object from the ajax lifecycle
eventType
- if the CAF.Ajax.f = ajax;call is not for the 'onclick' event, specify the event type as an argument so it can resolve what elements were in progress.
toRefresh
- (optional) the ids that the ajax call is refreshing (array or space seperated string)
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |