Class AjaxAnywhere

Object
   |
   +--AjaxAnywhere

class 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

delayBeforeContentUpdate

Object delayBeforeContentUpdate

delayInMillis

Object delayInMillis

formName

Object formName

id

Object id

notSupported

Object notSupported

req

Object req

substitutedSubmitButtons

Object substitutedSubmitButtons

substitutedSubmitButtonsInfo

Object substitutedSubmitButtonsInfo

defaultInstanceName

<static> Object defaultInstanceName

Constructor Detail

AjaxAnywhere

AjaxAnywhere()

Method Detail

bindById

void bindById()

callback

void callback()

dropPreviousRequest

void dropPreviousRequest()

findForm

Object findForm()

getAJAX

Object getAJAX(url, zonesToRefresh)

getDelayTime

Object getDelayTime()

getGlobalScriptsDeclarationsList

Object getGlobalScriptsDeclarationsList(script)

getZonesToReaload

Object getZonesToReaload(url, submitButton)

getZonesToReload

Object getZonesToReload(url, submitButton)

handleException

void handleException(type, details)

handleHttpErrorCode

void handleHttpErrorCode(code)

handlePrevousRequestAborted

void handlePrevousRequestAborted()

hideLoadingMessage

void hideLoadingMessage()

isDelayBeforeLoad

Object isDelayBeforeLoad()

isFormSubmitByAjax

Object isFormSubmitByAjax()

onAfterResponseProcessing

void onAfterResponseProcessing()

onBeforeResponseProcessing

void onBeforeResponseProcessing()

onGetAjaxNotSupported

Object onGetAjaxNotSupported(url)

onRequestSent

void onRequestSent()

onSubmitAjaxNotSupported

Object onSubmitAjaxNotSupported(additionalPostData, submitButton)

preparePostData

Object preparePostData(submitButton)

setDelayBeforeLoad

void setDelayBeforeLoad(isDelay)

setDelayTime

void setDelayTime(delayMillis)

showLoadingMessage

void showLoadingMessage()

submitAJAX

Object submitAJAX(additionalPostData, submitButton)

substituteFormSubmitFunction

void substituteFormSubmitFunction()

substituteSubmitButtonsBehavior

void substituteSubmitButtonsBehavior(keepExistingOnClickHandler, elements)

findInstance

<static> Object findInstance(id)


Documentation generated by JSDoc on Thu Dec 7 18:03:06 2006