os:activityAction Element

Switch View :
ScriptFree
os:activityAction Element

Specifies the Accelerator functionality based on a datatype, such as selection or document.

Syntax

<os:activityAction
    context = "sContext">
<!-- child elements -->
</os:activityAction>

Attributes

context
Required. The context in which the activity menu item is visible. One of the following values:
selectionDefault. A selected region was clicked.
documentThe document was clicked.
linkAn anchor tag was clicked.

Element Information

Parent elements os:activity
Child elements
Must occur exactly once os:execute
May occur at most once os:preview
Minimum availability Internet Explorer 8
Minimum operating systems Windows XP SP2

Example

The following Accelerator XML allows the user to quickly send document details to a blogging service. It uses a separate os:activityAction element for each of the defined contexts.


<?xml version="1.0" encoding="utf-8" ?> 
<os:openServiceDescription
    xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0">
  <os:homepageUrl>http://example.com/</homepageUrl> 
  <os:display>
    <os:name>Blog with MyBlogs</name> 
    <os:icon>http://example.com/favicon.ico</icon>
  </os:display>
  <os:activity category="blog">
    <os:activityAction context="selection">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{documentTitle}" /> 
        <os:parameter name="SourceURL" value="{documentUrl}" /> 
        <os:parameter name="description" value="{selection}" type="html" /> 
      </os:execute>
    </os:activityAction>
    <os:activityAction context="document">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{documentTitle}" /> 
        <os:parameter name="SourceURL" value="{documentUrl}" />
      </os:execute>
    </os:activityAction>
    <os:activityAction context="link">
      <os:execute method="get" action="http://www.example.com/BlogIt.aspx">
        <os:parameter name="title" value="{linkTitle}" /> 
        <os:parameter name="SourceURL" value="{link}" />
      </os:execute>
    </os:activityAction>
  </os:activity>
</os:openServiceDescription> 
Community Content

letsjusthavefun
should be {link} instead of {linkUrl}
tested with IE8 RTW on XP SP3