Tag Name: bind

Description

Attach event listeners to elements to make AJAX calls

Attributes

Name

Required

Default

Evaluated

Type

Description

afterNotifyTopics false true String Comma delimmited list of topics that will published after the request(if the request succeeds)
ajaxAfterValidation false false true Boolean Make an asynchronous request if validation succeeds. Only valid is 'validate' is 'true'
beforeNotifyTopics false true String Comma delimmited list of topics that will published before the request
errorNotifyTopics false true String Comma delimmited list of topics that will published after the request(if the request fails)
errorText false true String The text to display to the user if the is an error fetching the content
events false true String Comma delimited list of event names to attach to
executeScripts false false true Boolean Javascript code in the fetched content will be executed
formFilter false true String Function name used to filter the fields of the form.
formId false true String Form id whose fields will be serialized and passed as parameters
handler false true String Javascript function name that will make the request
highlightColor false none true String Color used to perform a highlight effect on the elements specified in the 'targets' attribute
highlightDuration false 2000 true Integer Duration of highlight effect in milliseconds. Only valid if 'highlightColor' attribute is set
href false true String The URL to call to obtain the content. Note: If used with ajax context, the value must be set as an url tag value.
id false true String The id to use for the element
indicator false true String Id of element that will be shown while making request
listenTopics false true String Topic that will trigger the remote call
loadingText false Loading... true String Text to be shown while content is being fetched
notifyTopics false true String Comma delimmited list of topics that will published before and after the request, and on errors
separateScripts false true true String Run scripts in a separate scope, unique for each tag
showErrorTransportText false true true Boolean Set whether errors will be shown or not
showLoadingText false false true Boolean Show loading text on targets
sources false true String Comma delimited list of ids of the elements to attach to
targets false true String Comma delimited list of ids of the elements whose content will be updated
transport false XMLHTTPTransport true String Transport used by Dojo to make the request
validate false false true Boolean Perform Ajax calidation. 'ajaxValidation' interceptor must be applied to action