Adam
Adam

Reputation:

How to create a Web slice with Search?

Does anyone know how bing's weather webslice search works? I am attempting to create a web slice(only available in IE8) with search built in and I have read that forms are not allowed and neither is javascript. Any help would be appreciated.

Upvotes: 0

Views: 135

Answers (2)

Andrew
Andrew

Reputation: 6351

You can achieve a similar effect using some simple javascript in a Chrome extension to create an Arbitrary Web Slice extension but with the advantage of being able to take any slice out of any web page, not just predefined Web Slice areas like Bing weather. Obviously only works in Chrome but Firefox has a similar extension API in GreaseMonkey.

Upvotes: 0

Michael S. Scherotter
Michael S. Scherotter

Reputation: 10787

You can create active content by defining it on another page using the entry-content rel attribute of an tag. In this example slice.aspx has JavaScript code on it.

<div class="hslice" id="MySlice">
    <p class="entry-title">
        My Active Slice</p>
     <a rel="entry-content" href="slice.aspx" />
    <div class="entry-content">
    </div>
</div>

Upvotes: 0

Related Questions