Enabling a Web Slice
Web Slices are new feature in IE 8 that allow your users to bookmark specify content on your site.
Implementing this feature is easy and can be accomplished in a few lines of code. The keys are:
- Use the 'hslice' class
- Specify a slice id
- Specify an 'entry-title'
- Specify 'entry-content'
- Use optional attributes (see IE8 Readiness Toolkit)
The code sample below highlights the required attributes in red and the optional attributes in blue.
The Web Slice User Experience
When a user views your web slice enabled page in IE8, the user is presented with a button that allows him/her
to add the slice.
A confirmation dialog appears, displaying the name of your web slice and the location.
Once the user has added the slice, a button is added to the browser toolbar.
(User can delete the slice by 'right-clicking' the slice name and then choosing delete.)
When the user clicks the slice button. The slice content is displayed. Two buttons give the user the ability to
both refresh the slice and to navigate to your page which contains the slice.