Send and receive data.
Name | Description | Default |
---|---|---|
credentials | sets credentials policy - one of ‘omit’, ‘same-origin’ or ‘include’ | same-origin |
id | required: id of submission for referral | ‘default’ |
ref | XPath reference pointing to the bound node | root node of default instance |
instance | id of instance when replace='instance' . Required when replace=‘instance’ | |
into | XPath expr where to insert response nodes into | |
mediatype | mediatype of request | ‘application/xml’ |
method | http methods GET, POST, PUT, DELETE, url-encoded-post | GET |
nonrelevant | handling of non relevant nodes during serialization. Can be one of ‘keep’, ’empty’ or ‘remove’ | remove |
replace | one of ‘all’, ‘download’, ‘instance’, ’target’, ‘redirect’ or ’none’ | all |
‘all’ - response replaces the viewport | ||
‘download’ - save dialog is shown for response. use target attribute to specify filename | ||
‘instance’ - response replaces the instance given by the instance attribute or if not present the default instance | ||
’target’ - response will be attached to element identified by target (CSS Selector syntax e.g. ‘#mydiv’) | ||
‘redirect’ - use response as redirect url. | ||
’none’ - response will be ignored. | ||
responsemediatype | mediatype of response | mediatype being used for request |
serialization | ’none’ or ‘xml’ at this point | xml |
target | selector in CSS selector syntax. valid only when replace is ’target’. | |
targetref | XPath pointing to target node when replace="instance" | |
validate | Boolean to turn validator mode on/off | true |
Name | Description |
---|---|
submit | dispatch before submission takes place |
submit-error | dispatched if the request returned an error |
submit-done | dispatched when submission was successfully completed |
To set headers in submissions there’s the <fx-header>
element. It has to be a direct child of the respective submission and
has the name
and value
attributes to specify the desired header. The value
attribute can use an XPath to point to the value.
If a plain string is wanted it has to be enclosed within tickles.
Example:
<fx-header name="Authorization" value="'auth'"></fx-header>
Beside http, https Fore supports: