Wednesday, October 22, 2008

IE 8 Accelerator Sample Example

This is an example of an IE 8 Accelerator. It doesn't tell you how to create one but it is itself a definition for an accelerator. This is a very simple one that adds an Accelerator that will just redirect the user to OfficePoint when clicked.

<?xml version="1.0" encoding="UTF-8" ?>

    <os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">

        <os:homepageUrl>http://officepoint.blogspot.com</os:homepageUrl>

            <os:display>

                <os:name>Visit OfficePoint</os:name>

                <os:icon>http://blogitems.googlepages.com/office.ico</os:icon>

                <os:description>Visit my site</os:description>

            </os:display>

            <os:activity category="Visit">

                <os:activityAction context="document">

                    <os:execute action="http://officepoint.blogspot.com" method="get" />

                </os:activityAction>

            </os:activity>

    </os:openServiceDescription>


 

In order to add an Accelerator you'll need add a button that adds the service.


 

<html>

<head>

<title>Untitled Page</title>

</head>

<body>

<form id="form1">

<div>

<button id="myButton1" onclick="window.external.AddService('http://localhost/OfficePointAccelerator.xml')">

Add OfficePoint Accelerator

</button>

</div>

</form>

</body>

</html>



1 comment:

what is a digital signature said...

A special thanks for this informative post. I definitely learned new stuff here I wasn't aware of !