public class MTAjaxUpdateContainer extends AjaxUpdateContainer
Name | Description |
---|---|
elementName | the container's element defaults to DIV. |
action | the action to call when this updateContainer refreshes |
method | - (string: defaults to 'post') The HTTP method for the request, can be either 'post' or 'get'. |
encoding | - (string: defaults to 'utf-8') The encoding to be set in the request header. |
emulation | - (boolean: defaults to true) If set to true, other methods than 'post' or 'get' are appended as post-data named '_method' (as used in rails) |
headers | - (object) An object to use in order to set the request headers. |
isSuccess | - (function) Overrides the built-in isSuccess function. |
evalScripts | - (boolean: defaults to true) If set to true, script tags inside the response will be evaluated. |
evalResponse | - (boolean: defaults to false) If set to true, the entire response will be evaluated. Responses with javascript content-type will be evaluated automatically. |
urlEncoded | - (boolean: defaults to true) If set to true, the content-type header is set to www-form-urlencoded + encoding |
noCache | - (boolean; defaults to false) If true, appends a unique noCache value to the request to prevent caching. (IE has a bad habit of caching ajax request values. Including this script and setting the noCache value to true will prevent it from caching. The server should ignore the noCache value.) |
async | - (boolean: defaults to true) If set to false, the requests will be synchronous and freeze the browser during request. |
optional | set to true if you want the container tags to be skipped if this is already in an update container (similar to ERXOptionalForm). If optional is true and there is a container, it's as if this AUC doesn't exist, and only its children will render to the page. |
onCancel | Fired when a request has been cancelled. |
onComplete | Fired when the Request is completed. |
onException | Fired when setting a request header fails. |
onFailure | Fired when the request failed (error status code). |
onRequest | Fired when the Request is sent. |
onSuccess(responseTree, | responseElements, responseHTML, responseJavaScript) Fired when the Request is completed successfully. |
frequency | the frequency (in seconds) of a periodic update |
initialDelay | - (number; defaults to 5000) The initial delay to wait for the request after a call to the start method |
delay | - (number; defaults to 5000) The delay between requests and the number of ms to add if no valid data has been returned |
limit | - (number; defaults to 60000) The maximum time the interval uses to request the server responseTree - (element) The node list of the remote response. responseElements - (array) An array containing all elements of the remote response. responseHTML - (string) The content of the remote response. responseJavaScript - (string) The portion of JavaScript from the remote response. |
onFailure | Fired when the request failed (error status code). |
useSpinner | (boolean) use the Spinner class with this request |
defaultSpinnerClass | inclue the default spinner css class in the headers - if false provide your own. |
spinnerOptions | - (object) the options object for the Spinner class |
spinnerTarget | - (mixed) a string of the id for an Element or an Element reference to use instead of the one specifed in the update option. This is useful if you want to overlay a different area (or, say, the parent of the one being updated). |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
MTAjaxUpdateContainer(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Adds all required resources.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
NSDictionary |
createAjaxOptions(WOComponent component) |
static NSDictionary |
removeDefaultOptions(NSDictionary options) |
static String |
updateContainerID(AjaxDynamicElement element,
WOComponent component) |
_containerID, createObserveFieldOptions, currentUpdateContainerID, expandInsertion, expandInsertionFromOptions, handleRequest, hasUpdateContainerID, invokeAction, removeDefaultOptions, safeUpdateContainerWithID, setCurrentUpdateContainerID, setUpdateContainerID, shouldRenderContainer, takeValuesFromRequest, updateContainerID, updateContainerID, updateContainerID, updateContainerWithID
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public MTAjaxUpdateContainer(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
public static String updateContainerID(AjaxDynamicElement element, WOComponent component)
protected void addRequiredWebResources(WOResponse response, WOContext context)
AjaxUpdateContainer
addRequiredWebResources
in class AjaxUpdateContainer
response
- the current responsecontext
- context of the transactionpublic NSDictionary createAjaxOptions(WOComponent component)
createAjaxOptions
in class AjaxUpdateContainer
public static NSDictionary removeDefaultOptions(NSDictionary options)
public void appendToResponse(WOResponse response, WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxUpdateContainer
response
- the current responsecontext
- context of the transactionCopyright © 2002 – 2024 Project Wonder.