tags:

views:

32

answers:

2

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.

A: 

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>
Michael S. Scherotter
A: 

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.

Andrew