{"id":40,"date":"2008-06-23T00:25:04","date_gmt":"2008-06-23T05:25:04","guid":{"rendered":"http:\/\/www.killersites.com\/magazine\/?p=40"},"modified":"2010-06-21T10:11:14","modified_gmt":"2010-06-21T15:11:14","slug":"internet-explorer-8-webslices","status":"publish","type":"post","link":"http:\/\/www.killersites.com\/magazine\/2008\/internet-explorer-8-webslices\/","title":{"rendered":"Internet Explorer 8 WebSlices"},"content":{"rendered":"<p><strong>What are WebSlices?<\/strong><\/p>\n<p>In a nutshell, webslices are an IE8 specific feature that allows the web designer to tag part of a webpage as a &#8216;webslice&#8217;. By tagging sections of a web page, users of IE8 can then subscribe to it, much in the same way that they can subscribe to an RSS feed. <\/p>\n<p>&#8230; I should also mention that when the webslice is updated, the user\/subscriber of the webslice will be notified. This is Microsoft&#8217;s explanation of it:<\/p>\n<blockquote><p>WebSlices is a new feature for websites that enables users to subscribe to content directly within a webpage. WebSlices behave just like feeds in that users can subscribe to them and receive update notifications when the content changes. Websites are polled at user-defined intervals, similar to the way RSS feeds are polled. Website operators may also define a minimum wait time between polls to minimize requests.<\/p>\n<p>Developers can mark parts of webpages as &#8220;WebSlices&#8221; and enable users to monitor information they rely on as they move about the web. With a click in the Favorites bar, users see rich &#8220;WebSlice&#8221; visuals and developers establish a valuable, persistent end-user connection.<\/p><\/blockquote>\n<p>OK, sounds like RSS feeds to me &#8230; but I figure I&#8217;d give it go. So on the <a href=\"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/ie\/ie8\/webslices.mspx\">IE8 beta webslices<\/a> page, they give you a few links to websites that support webslices. Of course, the MSN page doesn&#8217;t seem to work &#8211; all I can find is the RSS feed. <\/p>\n<p>Thankfully the stumbleupon.com webslice link seems to work and so I subscribe to the webslice &#8230; <\/p>\n<h4 class=\"sub-heading\">Webslice subscribe window:<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-subscribe.png\" alt=\"\" title=\"ie8-webslice-subscribe\" width=\"434\" height=\"185\" class=\"alignnone size-full wp-image-42\" srcset=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-subscribe.png 434w, http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-subscribe-300x127.png 300w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/p>\n<p>Whenever you come across a web page with a webslice in it, you get this nifty little icon appearing in the IE8 toolbar.<\/p>\n<h4 class=\"sub-heading\">The webslice &#8216;alert&#8217; icon:<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-icon.png\" alt=\"\" title=\"ie8-webslice-icon\" width=\"456\" height=\"167\" class=\"alignnone size-full wp-image-41\" srcset=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-icon.png 456w, http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-icon-300x109.png 300w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/p>\n<p>Now that we&#8217;ve subscribed to the stumbleupon.com webslice, a corresponding button appears in our Favorites bar that when clicked, displays this snapshot of the content that is there now.<\/p>\n<h4 class=\"sub-heading\">Webslice current view:<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-view.png\" alt=\"\" title=\"ie8-webslice-view\" width=\"449\" height=\"264\" class=\"alignnone size-full wp-image-43\" srcset=\"http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-view.png 449w, http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/ie8-webslice-view-300x176.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>As the image above shows, it does offer something a little extra over an RSS feed &#8230; one less click, I suppose.<\/p>\n<h4 class=\"sub-heading\">Creating your own webslices in your web pages<\/h4>\n<p>It seems pretty simple; you just have to wrap whatever content that you want to become a webslice in a div tag, and then just tag the div with the class of &#8216;hslice&#8217;. <\/p>\n<p>There are a few sub elements that you can use to further define the webslice: &#8216;entry-title&#8217; and &#8216;entry-content&#8217; &#8230; among others. <\/p>\n<h4 class=\"sub-heading\">Here is a simple example:<\/h4>\n<div style=\"margin-top: 20px; margin-bottom: 30px;\">\n<pre lang=\"html\" line=\"1\"><div class=\"hslice\" id=\"1\">\r\n      <p class=\"entry-title\">Item - $66.00<\/p> \r\n      <div class=\"entry-content\">high bidder: buyer1 \u2026 <\/div> \r\n<\/div><\/pre>\n<\/div>\n<p>Webslices can be decorated with a few other bits of information:<\/p>\n<ul>\n<li>Expiration date &#8211; when the webslice expires.<\/li>\n<li>Time to Live &#8211; how often it refreshes.<\/li>\n<\/ul>\n<p>Here is the same webslice example with the &#8216;time-to-live&#8217; attribute set:<\/p>\n<div style=\"margin-top: 30px; margin-bottom: 30px;\">\n<pre lang=\"html\" line=\"1\">\r\n<div class=\"hslice\" id=\"1\">\r\n  <p class=\"entry-title\">Item - $66.00<\/p>\r\n   <div class=\"entry-content\">high bidder: buyer1 \u2026 \r\n     <p>This clip updates every <span class=\"ttl\">15<\/span> minutes <\/p> \r\n   <\/div> \r\n<\/div>\r\n<\/pre>\n<\/div>\n<p>In the above code snippet, it is the &#8216;class=&#8221;ttl&#8221;&#8216; that sets the interval for the webslice.<\/p>\n<h4 class=\"sub-heading\">Conclusion:<\/h4>\n<p>At first glance, I wasn&#8217;t too impressed. But now that I&#8217;ve used them a little, I can see webslices as being a nice little feature. <\/p>\n<h4 class=\"sub-heading\">Links of Interest:<\/h4>\n<p>1. <a href='http:\/\/www.killersites.com\/magazine\/wp-content\/uploads\/2008\/06\/webslices.pdf'>webslices guide in PDF format<\/a> &#8230; from Microsoft.<\/p>\n<p>2. Using <a href=\"http:\/\/download.microsoft.com\/download\/B\/D\/2\/BD294C35-7BBD-4AF5-9ECA-5D902116C260\/ie8b1_webslices_overview.wmv\" target=\"_video\">webslices video<\/a> <\/p>\n<p>3. You can learn more about webslices at the <a href=\"http:\/\/code.msdn.microsoft.com\/Release\/ProjectReleases.aspx?ProjectName=ie8whitepapers&#038;ReleaseId=567\">IE8 beta webslices page<\/a>. <\/p>\n<p>&#8211;<\/p>\n<p>Thanks for reading,<\/p>\n<p>Stefan Mischook<\/p>\n<p>www.killersites.com<br \/>\nwww.killerphp.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What are WebSlices? In a nutshell, webslices are an IE8 specific feature that allows the web designer to tag part of a webpage as a \u2018webslice\u2019. By tagging sections of a web page, users of IE8 can then subscribe to it, much in the same way that they can subscribe to an RSS feed<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[29,30,16],"tags":[],"_links":{"self":[{"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/posts\/40"}],"collection":[{"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":2,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":530,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/posts\/40\/revisions\/530"}],"wp:attachment":[{"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.killersites.com\/magazine\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}