www.nickhodge.com

microsoft, munging and on being a mercurial iconoclastic professional geek.

Using Webslice and IFrames in WebSlices

without comments

Test­ing only. If you are read­ing this, please ensure you are using Inter­net Explorer 8

Webslices are new con­sumer fea­ture in Inter­net Explorer 8. You can embed simple HTML within a WebSlice that is a por­tion of a pre-existing page. To get IFRAMES and OBJECT to work there is a little tweak­ing required. Then you get Sil­ver­light and/or Flash.

The IFRAME/OBJECT con­tent is stripped (for secur­ity reas­ons) by the RSS engine in IE8. How­ever, when dis­play­ing a unique page – things can get way more interesting.

In the example WebSlice below, I use an altern­ate dis­play source. This altern­ate dis­play is used as the con­tent for the slice. This also per­mits smart styl­ing in your slice; as used on http://istartedsomething.com/‘s Webslice. The xxxx.html below is the page with the Webslice content.

<a rel="entry-content" href="xxxx.html" style="display:none;"></a>

iFrame

Image

Object Embed

 

Thanks to Michael Kordahi, Chris Bright and Greg Wil­lis for the push to check this out.

Written by Nick Hodge

March 5th, 2009 at 10:03 am

Posted in ie8,microsoft