Namespaces
Events
-
tdi:ajax:end
-
Fires when the TDI request has ended.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description optionsObject Additional request options
-
tdi:ajax:error
-
Fires when the Ajax request ends with an error.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description statusString The XHR status text (if available)
messageString The error message
xhrjqXHR The jqXHR object (see jQuery documentation for jQuery.ajax())
textStatusString The XHR text status (if available)
optionsObject Additional request options
-
tdi:ajax:start
-
Fires when the TDI request has started.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description xhrjqXHR The jqXHR object
optionsObject Additional request options
settingsObject The Ajax settings
-
tdi:ajax:beforeInsert
-
Fires before the TDI insert takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onInsertDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description target_idString The ID of the insert target
selectorString CSS selector for multiple targets
targetjQuery The insert target
contentString The insert contents
positionString The position of the insert (before|after)
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforePopup
-
Fires before the TDI popup takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onPopupDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description hrefString The URL of the popup
modeString The mode of the popup (popup|dialog)
widthNumber Width of the popup. Available only for dialog mode
heightNumber Height of the popup. Available only for dialog mode
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeRedirect
-
Fires before the TDI redirect takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onRedirectDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description hrefString The URL to redirect to
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeReload
-
Fires before the TDI reload takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onReloadDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeScript
-
Fires before the TDI script takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onScriptDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description script_srcString Path to the external Javascript file
script_dataString Inline Javascript code
script_idString ID of the <script> tag
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeStyle
-
Fires before the TDI style takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onStyleDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description style_srcString Path to the external CSS file
style_idString ID of the <link> tag
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeUnknown
-
Fires before the TDI instruction takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onUnknownDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description contentsString Instruction contents
ATTRS_NAMEString Other attributes
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:beforeUpdate
-
Fires before the TDI update takes place.
This event is preventable. Use preventDefault() to prevent the default action (
Response._onUpdateDefault).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description target_idString The ID of the update target
selectorString CSS selector for multiple targets
targetjQuery The update target
contentString The update contents
content_emptyBoolean Indicates whether the contents are empty
replaceBoolean Indicates whether the contents will replace the whole target
appendBoolean Indicates whether the contents will be appended to the end of the target
prependBoolean Indicates whether the contents will be prepended to the beginning of the target
class_addString Space separated list of class names to add
class_removeString Space separated list of class names to remove
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:done
-
Fires when all TDI actions are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description responsesArray The list of all instructions
optionsObject Additional request options
-
tdi:ajax:insert
-
Fires after the TDI insert takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description target_idString The ID of the insert target
selectorString CSS selector for multiple targets
targetjQuery The insert target
contentString The insert contents
positionString The position of the insert (before|after)
inserted_nodejQuery Reference to the inserted HTML node
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:insertsDone
-
Fires when all TDI <insert>s are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description insertsArray The list of all inserts
optionsObject Additional request options
-
tdi:ajax:popup
-
Fires after the TDI popup takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description hrefString The URL of the popup
modeString The mode of the popup (popup|dialog)
widthNumber Width of the popup. Available only for dialog mode
heightNumber Height of the popup. Available only for dialog mode
popupWindow Reference to the opened window
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:popupsDone
-
Fires when all TDI <popup>s are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description popupsArray The list of all popups
optionsObject Additional request options
-
tdi:ajax:script
-
Fires after the TDI script takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description script_srcString Path to the external Javascript file
script_dataString Inline Javascript code
script_idString ID of the <script> tag
script_nodejQuery Reference to the inserted <script>
script_node_inlinejQuery Reference to the inserted inline <script>
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:scriptsDone
-
Fires when all TDI <script>s are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description scriptsArray The list of all scripts
optionsObject Additional request options
-
tdi:ajax:style
-
Fires after the TDI style takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description style_srcString Path to the external CSS file
style_idString ID of the <link> tag
style_nodejQuery Reference to the inserted <link> node
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:stylesDone
-
Fires when all TDI <style>s are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description stylesArray The list of all styles
optionsObject Additional request options
-
tdi:ajax:unknown
-
Fires after the TDI unknown instruction takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description contentsString Instruction contents
ATTRS_NAMEString Other attributes
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:unknownsDone
-
Fires when all <unknown> TDI instructions are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description instructionsArray The list of all unknown instructions
optionsObject Additional request options
-
tdi:ajax:update
-
Fires after the TDI update takes place.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description target_idString The ID of the update target
selectorString CSS selector for multiple targets
targetjQuery The update target
contentString The update contents
content_emptyBoolean Indicates whether the contents are empty
replaceBoolean Indicates whether the contents will replace the whole target
appendBoolean Indicates whether the contents will be appended to the end of the target
prependBoolean Indicates whether the contents will be prepended to the beginning of the target
class_addString Space separated list of class names to add
class_removeString Space separated list of class names to remove
optionsObject Additional request options
tagjQuery The raw XML tag of the instruction
-
tdi:ajax:updatesDone
-
Fires when all TDI <update>s are done.
Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description updatesArray The list of all updates
optionsObject Additional request options
-
tdi:ajax:beforeFormSubmit
-
Fires before the form is submited.
This event is preventable. Use preventDefault() to prevent the default action (
_onFormSubmit).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description formjQuery The form object
-
tdi:ajax:beforeLinkClick
-
Fires before the link is clicked (before the link action is executed).
This event is preventable. Use preventDefault() to prevent the default action (
_onLinkClick).Parameters:
Name Type Description evtEvent The event object
dataObject The event properties
Properties:
Name Type Description linkjQuery The link object