os:execute Element
Describes a service that acts on selected text or document element.
Syntax
<os:execute accept-charset = "sCharset" action = "sAction" enctype = "sEnclosureType" method = "sMethod"> <!-- child elements --> </os:execute>
Attributes
- accept-charset
- Optional. Any valid character set name. If not specified, the following is assumed:
utf-8 Default. 8-bit Unicode Transformation Format (UTF-8). - action
- Required. A URL template that specifies the target of this request. The template can contain replaced variables.
- enctype
- Optional. A content type for form data.
application/x-www-form-urlencoded Default. Name/value pairs, with specific rules for encoding non-ASCII and reserved characters. multipart/form-dataSubmission is multipart MIME, suitable for binary data. Only valid with POSTrequest.- method
- Optional. The HTTP request method to use. Case-insensitive.
GET Default. Sends data as URL parameters. Appends os:parameter elements to the URL template. POSTSend data as name/value pairs in the body of the request.
Element Information
Parent elements os:activityAction Child elements May occur one or more times os:parameterMinimum availability Internet Explorer 8 Minimum operating systems Windows XP SP2
Remarks
When using the
GETmethod to send data, the amount of data is limited to 2048 bytes.This element is required.
Example
The following os:execute element describes the service ineteraction using URL parameters and replaced variables. See os:parameter for a complete list of variables.
<os:execute method="get" action="http://example.com/submit.aspx?url={documentUrl}&title={documentTitle?}" />
See Also
os:preview