CAF Shared JavaScript

Class CAF.Ajax

Object
   |
   +--CAF.Ajax

class 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

CAF.Ajax()

Method Detail

afterCompleted

<static> void afterCompleted(id, refreshedElementIds)

afterUpdate

<static> void afterUpdate(id)

beforeRefresh

<static> Object beforeRefresh(data, toRefresh)

beforeSubmit

<static> Object beforeSubmit(event, toExecute)

clientSideValidate

<static> Object clientSideValidate(event, toValidate)

handleResponse

<static> Object handleResponse(transport, options)

onError

<static> void onError(data, finishedFn)

onEvent

<static> void onEvent(data, eventType, toRefresh, finshedFn)

raiseActionEvent

<static> Object raiseActionEvent(event)

startProgress

<static> void startProgress(data, toRefresh)

stopProgress

<static> void stopProgress(data, eventType, toRefresh)

CAF Shared JavaScript

Documentation generated by JSDoc on Sun Sep 15 20:21:18 2019