<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>All things .NET and beyond - Internet Explorer 8</title>
    <link>http://www.fluxtah.com/</link>
    <description>Ian (Fluxtah) Warwick's blog</description>
    <language>en-us</language>
    <copyright>Ian Warwick</copyright>
    <lastBuildDate>Thu, 09 Oct 2008 14:52:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>fluxtah@hotmail.com</managingEditor>
    <webMaster>fluxtah@hotmail.com</webMaster>
    <item>
      <trackback:ping>http://www.fluxtah.com/Trackback.aspx?guid=9f46bc19-482c-4860-8ecf-c21590dc226a</trackback:ping>
      <pingback:server>http://www.fluxtah.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.fluxtah.com/PermaLink,guid,9f46bc19-482c-4860-8ecf-c21590dc226a.aspx</pingback:target>
      <dc:creator>Fluxtah</dc:creator>
      <wfw:commentRss>http://www.fluxtah.com/SyndicationService.asmx/GetEntryCommentsRss?guid=9f46bc19-482c-4860-8ecf-c21590dc226a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I am quite impressed with IE8 beta 2, annoying bugs aside. One feature of IE8 that
is very useful is accelerators, I decided to give it a shot today to see if I could
get one working and its surprisingly easy. 
</p>
        <p>
You can create an accelerator by writing an xml document in the <a title="OpenService Format Specification for Accelerators" href="http://msdn.microsoft.com/en-us/library/cc304163(VS.85).aspx" target="_blank">OpenService
Format Specification for Accelerators</a> and making the file accessible from a website,
then creating a button with an onclick handler that calls <em>window.external.AddService(url_to_xml_file)</em>. 
</p>
        <p>
As a quick test I created an xml file to describe an accelerator for my blog similar
to the following. 
</p>
        <pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;os:openServiceDescription<br />
    xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0"&gt;<br />
    &lt;os:homepageUrl&gt;http://www.yoursite.com&lt;/os:homepageUrl&gt;<br />
    &lt;os:display&gt;<br />
        &lt;os:name&gt;Blog with your site&lt;/os:name&gt;<br />
        &lt;os:icon&gt;http://www.yoursite.com/favicon.ico&lt;/os:icon&gt;<br />
        &lt;os:description&gt;Blog on your site
easily&lt;/os:description&gt;<br />
    &lt;/os:display&gt;<br />
    &lt;os:activity category="Blog"&gt;<br />
        &lt;os:activityAction context="selection"&gt;<br />
            &lt;os:execute
action="http://www.yoursite.com/blog/add_entry.aspx" method="get"&gt;<br />
               
&lt;os:parameter name="title" value="{selection}" type="text" /&gt; 
<br />
            &lt;/os:execute&gt;<br />
        &lt;/os:activityAction&gt;<br />
    &lt;/os:activity&gt;<br />
&lt;/os:openServiceDescription&gt; </pre>
        <p>
The most notable tags are described below:- 
</p>
        <ul>
          <li>
            <strong>&lt;os:activityAction context="selection"&gt;</strong>
            <br />
The value 'selection' of the context attribute of this tag specifies that this accelerator
will be available when the user selects a block of text, there are two other possible
options:-<br /><br />
'document' - makes the accelerator available for the whole document.<br />
'link' - makes the accelerator available when the user selects a link.<br /><br /></li>
          <li>
            <strong>&lt;os:execute action="http://www.yoursite.com/blog/add_entry.aspx</strong>
            <strong>"
method="get"&gt;<br /></strong>The action of the execute tag does the business of redirecting to, or in
this case, accelerating to the add entry page of the blog service, we can do this
via a http GET or POST as described by the method attribute.<br /><br /></li>
          <li>
            <strong>&lt;os:parameter name="title" value="{selection}" type="text" /&gt;<br /></strong>You can add a collection of these parameters that will be either sent as
GET or POST vars, depending what you set for the method of the execute tag above,
{selection} is a placeholder for information that is retrieved from the page that
we are accelerating from, there are many possible options here which I will not list
as they are available on <a title="http://msdn.microsoft.com/en-us/library/cc289775(VS.85).aspx#_vars" href="/admin/Pages/Accelerator%20variables%20documentation%20on%20MSDN" target="_blank">msdn
accelerator docs</a>. 
</li>
        </ul>
        <p>
Once this xml document is ready and uploaded all that is needed is a link to it from
a html document like the one below. 
</p>
        <pre>&lt;html&gt;<br />
    &lt;head&gt;&lt;title&gt;My Blog Accelerator&lt;/title&gt;&lt;/head&gt;<br />
    &lt;body&gt;<br />
        &lt;button id="installButton" onclick="window.external.AddService('my_accelerator.xml');"&gt;Add
My Blog Accelerator&lt;/button&gt; 
<br />
    &lt;/body&gt;<br />
&lt;/html&gt;</pre>
        <p>
The example above would require the html document to be in the same path as my_accelerator.xml.  
</p>
        <p>
And thats all there is to it, <a title="the documentation for developing accelerators on MSDN" href="http://msdn.microsoft.com/en-us/library/cc289775(VS.85).aspx" target="_blank">the
documentation for developing accelerators</a> can be found on msdn.  
</p>
        <img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=9f46bc19-482c-4860-8ecf-c21590dc226a" />
      </body>
      <title>Developing Internet Explorer 8 Accelerators</title>
      <guid isPermaLink="false">http://www.fluxtah.com/PermaLink,guid,9f46bc19-482c-4860-8ecf-c21590dc226a.aspx</guid>
      <link>http://www.fluxtah.com/2008/10/09/DevelopingInternetExplorer8Accelerators.aspx</link>
      <pubDate>Thu, 09 Oct 2008 14:52:00 GMT</pubDate>
      <description>&lt;p&gt;
I am quite impressed with IE8 beta 2, annoying bugs aside. One feature of IE8 that
is very useful is accelerators, I decided to give it a shot today to see if I could
get one working and its surprisingly easy. 
&lt;/p&gt;
&lt;p&gt;
You can create an accelerator by writing an xml document in the &lt;a title="OpenService Format Specification for Accelerators" href="http://msdn.microsoft.com/en-us/library/cc304163(VS.85).aspx" target=_blank&gt;OpenService
Format Specification for Accelerators&lt;/a&gt; and making the file accessible from a website,
then creating a button with an onclick handler that calls &lt;em&gt;window.external.AddService(url_to_xml_file)&lt;/em&gt;. 
&lt;/p&gt;
&lt;p&gt;
As a quick test I created an xml file to describe an accelerator for my blog similar
to the following. 
&lt;/p&gt;
&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br&gt;
&amp;lt;os:openServiceDescription&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:homepageUrl&amp;gt;http://www.yoursite.com&amp;lt;/os:homepageUrl&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:display&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:name&amp;gt;Blog with your site&amp;lt;/os:name&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:icon&amp;gt;http://www.yoursite.com/favicon.ico&amp;lt;/os:icon&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:description&amp;gt;Blog on your site
easily&amp;lt;/os:description&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/os:display&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:activity category="Blog"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:activityAction context="selection"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;os:execute
action="http://www.yoursite.com/blog/add_entry.aspx" method="get"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;os:parameter name="title" value="{selection}" type="text" /&amp;gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/os:execute&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/os:activityAction&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/os:activity&amp;gt;&lt;br&gt;
&amp;lt;/os:openServiceDescription&amp;gt; &lt;/pre&gt;
&lt;p&gt;
The most notable tags are described below:- 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&amp;lt;os:activityAction context="selection"&amp;gt;&lt;/strong&gt;
&lt;br&gt;
The value 'selection' of the context attribute of this tag specifies that this accelerator
will be available when the user selects a block of text, there are two other possible
options:-&lt;br&gt;
&lt;br&gt;
'document' - makes the accelerator available for the whole document.&lt;br&gt;
'link' - makes the accelerator available when the user selects a link.&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
&lt;strong&gt;&amp;lt;os:execute action="http://www.yoursite.com/blog/add_entry.aspx&lt;/strong&gt;&lt;strong&gt;"
method="get"&amp;gt;&lt;br&gt;
&lt;/strong&gt;The action of the execute tag does the business of redirecting to, or in
this case, accelerating to the add entry page of the blog service, we can do this
via a http GET or POST as described by the method attribute.&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
&lt;strong&gt;&amp;lt;os:parameter name="title" value="{selection}" type="text" /&amp;gt;&lt;br&gt;
&lt;/strong&gt;You can add a collection of these parameters that will be either sent as
GET or POST vars, depending what you set for the method of the execute tag above,
{selection} is a placeholder for information that is retrieved from the page that
we are accelerating from, there are many possible options here which I will not list
as they are available on &lt;a title=http://msdn.microsoft.com/en-us/library/cc289775(VS.85).aspx#_vars href="/admin/Pages/Accelerator%20variables%20documentation%20on%20MSDN" target=_blank&gt;msdn
accelerator docs&lt;/a&gt;. 
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Once this xml document is ready and uploaded all that is needed is a link to it from
a html document like the one below. 
&lt;/p&gt;
&lt;pre&gt;&amp;lt;html&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;My Blog Accelerator&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;button id="installButton" onclick="window.external.AddService('my_accelerator.xml');"&amp;gt;Add
My Blog Accelerator&amp;lt;/button&amp;gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br&gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;p&gt;
The example above would require the html document to be in the same path as my_accelerator.xml.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
And thats all there is to it, &lt;a title="the documentation for developing accelerators on MSDN" href="http://msdn.microsoft.com/en-us/library/cc289775(VS.85).aspx" target=_blank&gt;the
documentation for developing accelerators&lt;/a&gt; can be found on msdn.&amp;nbsp; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=9f46bc19-482c-4860-8ecf-c21590dc226a" /&gt;</description>
      <comments>http://www.fluxtah.com/CommentView,guid,9f46bc19-482c-4860-8ecf-c21590dc226a.aspx</comments>
      <category>Internet Explorer 8</category>
    </item>
  </channel>
</rss>