Peter Schneider


MCT, MCSD.NET, MCAD.NET, MCDBA

News

Locations of visitors to this page

  

Austrian .NET Community

Open Url Activity for IE8

More or less often you find Url's in webpages (for example in forum comments) which are not hyperlinked.

You then Copy and Paste the Url into the Browser's address bar to open it. With this little IE8 activity you can open the Url via the activity smarttag.
OpenUrlActivity

As the {selection} variable is not accepted in the action attribute of the execute element, I've entered the [your domain] placeholder, which you might want to change to your domain to get the sample running.

<?xml version="1.0" encoding="UTF-8"?>
<openServiceDescription xmlns="
http://www.microsoft.com/schemas/openservicedescription/1.0">
<homepageUrl>
http://[your domain]</homepageUrl>
<display>
<name>Open URL in Browser</name>
<icon>
http://www.live.com/favicon.ico</icon>
</display>
<activity category="share">
  <activityAction context="selection">
    <preview action="
http://[your domain]/Redirect.aspx">
       <parameter name="url" value="{selection}"/>
    </preview>
    <execute action="
http://[your domain]/Redirect.aspx">
       <parameter name="url" value="{selection}"/>
    </execute>
  </activityAction>
</activity>
</openServiceDescription>

To get this sample running save the above code snippet to a XML file and upload it to [your domain] and save it as OpenUrlActivity.xml

You then need a little "install" routine:

<button onclick="window.external.addService('http://[your domain]/OpenUrlActivity.xml')">Add OpenUrl Activity
</button>

Needless to say that you also need the Redirect.aspx where you redirect the user to the value passed with the url parameter.

For a detailed description of the Activity XML Format see http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=ie8whitepapers&ReleaseId=566

Comments

nick_relerv said:

# April 10, 2009 2:54 PM

transparent bikini said:

All about transparent bikini model

# June 10, 2009 3:37 PM

name said:

Where it is possible to buy the,

# July 29, 2009 6:56 AM

name said:

Your Site Is Great,

# July 29, 2009 10:33 AM

name said:

Give somebody the  to a site about the,

# July 29, 2009 5:37 PM

name said:

Help me to find the,

# July 30, 2009 12:18 AM

name said:

I bookmarked this guestbook.,

# July 30, 2009 3:38 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)