Upload
ryan-underwood
View
215
Download
2
Embed Size (px)
Citation preview
Pietro BrambatiDeveloper Evangelist, MicrosoftBlogs.msdn.com/pietrobr
Internet Explorer 8Web Slices, Accelerators, Visual Search
Agenda
Web SlicesAcceleratorsVisual Search Providers
Web Slices
http://www.ebay.com/amazonkindle20543521543
<div class=”hslice” id=”ws1” ><p class=”entry-title”>Amazon Kindle, Unopened</p><div class=”entry-content”>
<img src=”pic.jpg”><p>Current bid: US $282.11</p>
</div></div>
Web Slices
Web Slices
<a rel=feedurl
Anche un Feed RSS
Web Slices
Alternate Data SourcesLive ContentSilverlight, Flash, ActiveX controls
<a rel=entry-content
Installare una Web Slice
<input type="button" onclick='window.external.AddToFavoritesBar( "http://localhost/webslice/webslice.html#ws1", “Titolo web slice", "slice");'
/>
Accelerators
Accelerator XML File
<?xml version="1.0" encoding="utf-8" ?> <openServiceDescription
xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0"> <homepageUrl>http://maps.live.com</homepageUrl> <display> <name>Map with Live Maps</name> <icon>http://maps.live.com/favicon.ico</icon> </display> <activity category="Map"> <activityAction context="selection"> <execute method="get“
action="http://maps.live.com/default.aspx?where1={selection}" /> <preview method="get"
action="http://maps.live.com/geotager.aspx"> <parameter name="b" value="{selection}" />
<parameter name="clean" value="true" /> <parameter name="w" value="320" /> <parameter name="h" value="240" />
</preview> </activityAction> </activity></openServiceDescription>
Installare un Accelerators
<button id="myButton“ onclick="window.external.AddService('http://www.e.com/activity.xml')"> Add MyMap to the shortcut menu in Internet Explorer 8
</button>
Visual Serch Providers
Search Provider - Suggerimenti
Search Provider –Suggerimenti Visuali
Search Provider da Accelerators
OpenSearch Description File
<?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:ie="http://schemas.microsoft.com/Search/2008/"> <ShortName>My Custom Search</ShortName> <Image height="16" width="16" type="image/icon">http://e.com/example.ico</Image>
<Url type="text/html" template="http://e.com/search.aspx?q={searchTerms}&source=IE"/>
<Url type="application/x-suggestions+json" template="http://suggestions.e.com/search.aspx?q={searchTerms}"/>
<Url type="application/x-suggestions+xml" template="http://suggestions.e.com/search.aspx?q={searchTerms}"/>
<ie:PreviewUrl type="text/html" template="http://suggestions.e.com/search.aspx?q={searchTerms}"/>
</OpenSearchDescription>
Suggerimenti - JSON
["xbox", ["Xbox 360", "Xbox cheats", "Xbox 360 games"], ["The official Xbox website from Microsoft", "Codes and walkthroughs", "Games and accessories"], ["http://www.a.com","http://b.com/", "http://www.c.com"]]
Suggerimenti - XML
…<Item> <Text>Xbox 360 Game Consoles</Text> <Description>Game console systems and packages at a great
deal.</Description> <Image source="http://www.example.com/xboxconsole.jpg"
alt="Xbox 360 Consoles" width="75" height="75"/> <Url>http://www.example.com/</Url> </Item>…
Installare un Search Provider
<a href="#" onclick="window.external.AddSearchProvider('http://www.example.com/provider.xml')" >Add Search Provider Example
</a>
Installare un Search Provider 2
<head><link title="My Provider" rel="search" type="application/opensearchdescription+xml" href="http://www.a.com/provider.xml">
Link utili
Web Sliceshttp://msdn.microsoft.com/en-us/library/cc196992(VS.85).aspx
Accelerators Developer Guidehttp://msdn.microsoft.com/en-us/library/cc287851(VS.85).aspx
Search Providerhttp://msdn.microsoft.com/en-us/library/cc891507(VS.85).aspx
© 2009 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only.MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.