<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bargain Blog &#187; Internet Explorer</title>
	<atom:link href="http://blog.ozbargain.com.au/tag/internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ozbargain.com.au</link>
	<description>Because we are cheap</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:18:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OzBargain Web Slice for Internet Explorer 8</title>
		<link>http://blog.ozbargain.com.au/2008/ozbargain-web-slice-for-internet-explorer-8/</link>
		<comments>http://blog.ozbargain.com.au/2008/ozbargain-web-slice-for-internet-explorer-8/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 13:18:56 +0000</pubDate>
		<dc:creator>scotty</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Web Slice]]></category>

		<guid isPermaLink="false">http://blog.ozbargain.com.au/?p=560</guid>
		<description><![CDATA[How many of you are actually Internet Explorer 8 users? You know. The one that has Beta 2 released 3 months ago, and is heading for gold release sometime early next year? I am. Well, during the day when I am at work which requires me to use Internet Explorer. And I know some of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.ozbargain.com.au/media/images/internet-explorer-8.png" width="305" height="70" class="floatright"/> How many of you are actually <b>Internet Explorer 8</b> users? You know. The one that has <a href="http://blogs.msdn.com/ie/archive/2008/09/16/internet-explorer-8-beta-2-now-available-in-25-languages.aspx">Beta 2 released</a> 3 months ago, and is heading for gold release sometime early next year? <b>I am</b>. Well, during the day when I am at work which requires me to use Internet Explorer. And I know some of you are as well &#8212; around <b>0.36%</b> of visitors to <a href="http://www.ozbargain.com.au/">OzBargain</a> use IE8. Not that many actually &#8212; in fact <em>much less</em> than <a href="http://www.google.com/chrome">Google Chrome</a> which comes at whooping 3.73%. However IE8 is much better than the previous versions of Internet Explorers (from a developers&#8217; point of view &#8212; a built in debugger <em>finally</em>!!!) And you know &#8212; all these will change next year with Microsoft&#8217;s <del>monopoly</del> dominance on the PC desktops, and they will all be running IE8 sooner or later&#8230;</p>
<p>I guess the <em>real</em> reason for this blog post is, OzBargain has actually implemented some extra functionality <em>just</em> for the up-coming web browser from Redmond. <b>Shocking</b>! <em>Is OzBargain selling out</em>?! No, I am not paid by MSFT nor have they offered me a <a href="http://au.youtube.com/watch?v=CZrr7AZ9nCY">big ass table</a> as Christmas present (<em>except for a free lunch, thanks Deeps!</em>). OzBargain has been invited to participate in the up-coming IE8 launch, and the challenge is &#8212; how to incorporate new IE8 features into existing website. And in my case, adding a <a href="http://www.microsoft.com/windows/internet-explorer/beta/features/web-slices.aspx">Web Slice</a>.</p>
<p><span id="more-560"></span></p>
<h3>Adding OzBargain Web Slice to Internet Explorer 8</h3>
<p>So now when you visit <a href="http://www.ozbargain.com.au/">OzBargain front page</a> with Internet Explorer 8, Feed/Web Slice discovery button will be highlighted to show that Web Slice exists on this web page. Click on it reveals that a Web Slice called &#8220;OzBargain Deals&#8221; is available.</p>
<p style="text-align:center"><img src="http://blog.ozbargain.com.au/media/images/webslice-1.png" width="429" height="258" alt="Web Slice" style="padding:3px;border:#ccc solid 1px;"/></p>
<p>Click on the &#8220;OzBargain Deals&#8221; web slice will pop-up a dialog prompting when you want to add this Web Slice to the IE Favorite Bar.</p>
<p style="text-align:center"><img src="http://blog.ozbargain.com.au/media/images/webslice-2.png" width="437" height="183" alt="Add Web Slice to Favorite Bar" style="padding:3px;border:#ccc solid 1px;"/></p>
<p>You&#8217;ll see a new button being added to your Favorite Bar, titled &#8220;OzBargain Deals&#8221;. It will be highlighted when the content of the Web Slice has changed, and when you click on it, it brings out a small chrome-less window showing (1) most voted deals from the last 72 hours, and (2) most recently submitted deals.</p>
<p><img src="http://blog.ozbargain.com.au/media/images/webslice-3.png" width="384" height="585" alt="OzBargain Web Slice" class="floatright bordered"/> Cool huh?! That means if you are an Internet Explorer 8 user, you can check out probably the most relevant deals on OzBargain with <b>one click</b>! How awesome!</p>
<h3>How Web Slice is Implemented</h3>
<p>Alright. Marketing cap off, engineering cap on. It took me around 2-3 hours to add the &#8220;OzBargain Deals&#8221; web slice onto OzBargain. I did this as a proof of concept, although there are many features that I did not use. It turns out that it&#8217;s actually <em>pretty easy</em> to add a web slice onto IE8. There&#8217;s no ActiveX. No special browser extension. Nope. Just plain CSS and HTML.</p>
<p>The first thing that should be done is to <a href="http://go.microsoft.com/fwlink/?LinkId=125804">RTFM</a>, and MSDN has everything you need to implement Web Slice on your own site.</p>
<p>Now, there is no actual visual element on OzBargain front page that I wish to make into a web slice. So I basically create a hidden element so Web Slice discovery will detect the existence of a Web Slice on OzBargain (yet invisible to most visitors). I am using <a href="http://drupal.org/">Drupal</a> for OzBargain, and it&#8217;s relatively trivial to add this onto a front-page template:</p>
<pre class="code">
&lt;div id="slicedeals" class="hslice" style="display:none"&gt;
  &lt;span class="entry-title" style="visibility:hidden"&gt;OzBargain Deals&lt;/span&gt;
  &lt;a rel="entry-content" href="/slice/hot-deals" title="OzBargain Deals"&gt;&lt;/a&gt;
&lt;/div>
</pre>
<p>The key is:</p>
<ul>
<li>An outer &lt;div/&gt; that <b>must</b> have an <code>id</code> and <code>class="hslice"</code>.</li>
<li>An inner element with <code>class="entry-title"</code> defines what this web slice will be called on the Favorite Bar.</li>
<li>An anchor with <code>rel="entry-content"</code> points to where the actual web slice content is.</li>
</ul>
<p>Now the next step is to actually implement the content for your web slice. YMMV depending on your chosen CMS/framework. Again it&#8217;s easy to add an URL handler in Drupal, where I <a href="http://www.ozbargain.com.au/slice/hot-deals">implemented the actual web slice content</a>. Nothing fancy on this page &#8212; standard HTML, CSS and a bit of Javascript with jQuery. Moreover, I just need to make sure it looks okay on IE8 &#8212; no browser compatibility test required!</p>
<p>Let&#8217;s it! Now go and make your website a slice!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ozbargain.com.au/2008/ozbargain-web-slice-for-internet-explorer-8/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

