|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--AjaxAnywhere
Defined in aa.js
Field Summary | |
Object |
delayBeforeContentUpdate
|
Object |
delayInMillis
|
Object |
formName
|
Object |
id
|
Object |
notSupported
|
Object |
req
|
Object |
substitutedSubmitButtons
Stores substitutes SubmitButton names in to redo sustitution if a button was eventually inside a refresh zone. |
Object |
substitutedSubmitButtonsInfo
|
<static> Object |
defaultInstanceName
|
Constructor Summary | |
AjaxAnywhere
()
|
Method Summary | |
void
|
bindById()
Binds this instance to window object using "AjaxAnywhere."+this.id as a key. |
void
|
callback()
A callback. |
void
|
dropPreviousRequest()
Used internally by AjaxAnywhere. |
Object
|
findForm()
Returns a Form object that corresponds to formName property of this AjaxAnywhere class instance. |
Object
|
getAJAX(url, zonesToRefresh)
sends a GET request to the server. |
Object
|
getDelayTime()
Returns the delay period in milliseconds. |
Object
|
getGlobalScriptsDeclarationsList(script)
If the HTML received in responce to AJAX request contains JavaScript that defines new functions/variables, they must be propagated to the proper context. |
Object
|
getZonesToReaload(url, submitButton)
depreceted : wrond spelling : Reaload will be removed in later versions |
Object
|
getZonesToReload(url, submitButton)
This function should be overridden by AjaxAnywhere user to implement client-side determination of zones to reload. |
void
|
handleException(type, details)
If an exception is throws on the server-side during AJAX request, it will be processed by this function. |
void
|
handleHttpErrorCode(code)
If an HTTP Error code returned during AJAX request, it will be processed by this function. |
void
|
handlePrevousRequestAborted()
Override it if you need. |
void
|
hideLoadingMessage()
Default sample loading message hide function. |
Object
|
isDelayBeforeLoad()
Returns the current delay behavior. |
Object
|
isFormSubmitByAjax()
Override this function if you use AjaxAnywhere.substituteFormSubmitFunction() to dynamically inform AjaxAnywhere of the method you want to use for the form submission. |
void
|
onAfterResponseProcessing()
Override this method to implement a custom action |
void
|
onBeforeResponseProcessing()
Override this method to implement a custom action |
Object
|
onGetAjaxNotSupported(url)
Provides a default implementation from graceful degradation for getAJAX() calls location.href=url if XMLHttpRequest is unavailable, reloading the entire page . |
void
|
onRequestSent()
Override this method to implement a custom action |
Object
|
onSubmitAjaxNotSupported(additionalPostData, submitButton)
Provides a default implementation from graceful degradation for submitAJAX() calls form.submit() if XMLHttpRequest is unavailable, reloading the entire page |
Object
|
preparePostData(submitButton)
Internally used to prepare Post data. |
void
|
setDelayBeforeLoad(isDelay)
Some browsers (notably IE) do not load images from thier cache when content is updated using innerHTML. |
void
|
setDelayTime(delayMillis)
Sets the delay period in milliseconds. |
void
|
showLoadingMessage()
Default sample loading message show function. |
Object
|
submitAJAX(additionalPostData, submitButton)
This function is used to submit all form fields by AJAX request to the server. |
void
|
substituteFormSubmitFunction()
This function is used to facilitatte AjaxAnywhere integration with existing projects/frameworks. |
void
|
substituteSubmitButtonsBehavior(keepExistingOnClickHandler, elements)
Substitutes the default behavior of <input type=submit|image> to submit the form via AjaxAnywhere. |
<static> Object
|
findInstance(id)
Finds an instance by id. |
Field Detail |
Object delayBeforeContentUpdate
Object delayInMillis
Object formName
Object id
Object notSupported
Object req
Object substitutedSubmitButtons
Object substitutedSubmitButtonsInfo
<static> Object defaultInstanceName
Constructor Detail |
AjaxAnywhere()
Method Detail |
void bindById()
void callback()
void dropPreviousRequest()
Object findForm()
Object getAJAX(url, zonesToRefresh)
Object getDelayTime()
Object getGlobalScriptsDeclarationsList(script)
Object getZonesToReaload(url, submitButton)
Object getZonesToReload(url, submitButton)
void handleException(type, details)
void handleHttpErrorCode(code)
void handlePrevousRequestAborted()
void hideLoadingMessage()
Object isDelayBeforeLoad()
Object isFormSubmitByAjax()
void onAfterResponseProcessing()
void onBeforeResponseProcessing()
Object onGetAjaxNotSupported(url)
void onRequestSent()
Object onSubmitAjaxNotSupported(additionalPostData, submitButton)
Object preparePostData(submitButton)
void setDelayBeforeLoad(isDelay)
boolean
- ) isDelay
void setDelayTime(delayMillis)
int
- ) delayMillis
void showLoadingMessage()
Object submitAJAX(additionalPostData, submitButton)
void substituteFormSubmitFunction()
void substituteSubmitButtonsBehavior(keepExistingOnClickHandler, elements)
indicates
- if existing onClick handlers should be preserved. If keepExistingOnClickHandler==true, Existing handler will be called first if it returns false, or if event.returnValue==false, AjaxAnywhere will not continue form submission. If keepExistingOnClickHandler==false or undefines, existing onClick event handlers will be replaced.
list
- of submitButtons and submitImages names. If the parameter is omitted or undefined, all elements will be processed
<static> Object findInstance(id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |