About Me

microformats hcard approaching

is a Professional Geek for Microsoft Australia. More info lives underneath the About Box...

-33.831416, 151.222526
MrCell+61.417.212181
Work:
1 Epping Road
North Ryde, NSW 2113
Australia
photo of nick hodge

Stuff

View Nick Hodge's profile on LinkedIn

msdn channel 9

Using Webslice and IFrames in WebSlices

By Nick Hodge | March 5, 2009

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.

Topics: ie8, microsoft | No Comments »

Comments