Microsoft internet explorer web slices




















If Internet Explorer detects a change, it will notify the user by making the text of the Web Slice button bold. By default, Internet Explorer uses the suggested update interval specified by the Web Slice publisher in the ttl property element, if such element exists; otherwise, updates follow the default feed interval , normally every 24 hours.

Users can either adjust the update frequency inside the Web Slice Properties dialog box, or update the cached Web Slice at any time by clicking the Refresh button in the preview window. To view a Web Slice, click its button on the Favorites bar. The preview window, also called the flyout , displays the locally cached content of the Web Slice, or an Alternative Display Source, if one has been defined by the publisher.

Note When testing Web Slices on an intranet, you might need to disable Compatibility View to ensure that the Web Slice is rendered as it will appear on the Web. To quickly access the full Web page, click the Open button in the preview window. By default, Internet Explorer returns to where a particular Web Slice was discovered; the publisher can modify this behavior through the bookmark property.

To detect a Web Slice on a Web page, Internet Explorer scans for elements that have certain class names and attributes. The hslice element describes a section of a Web page to which the browser can subscribe. The hslice element contains all of the required and optional properties of a Web Slice. In contrast to traditional style classes, Web Slice class names do not require a CSS rule in the style sheet. Using a space-delimited list, you can combine Web Slice class names with those of other classes.

In a manner similar to how a named anchor is used, the id attribute is used to identify the Web Slice in a URL. The id attribute must be present on the same element that uses the hslice class. The id must be unique: if two or more Web Slices on a Web page have the same id value, Internet Explorer will only recognize the first one. If the id value changes, Internet Explorer will no longer be able to identify the Web Slice. At least one child of hslice must use the entry-title class name.

The value of this property maps to the Web Slice button text and the advertised name on the Feed Discovery button. It is possible to combine multiple text spans to create a dynamic title that is updated with the Web Slice.

The entry-title class can be applied to more than one element; Internet Explorer will concatenate the values in the order in which they appear in HTML. To check for updates, Internet Explorer compares the Web Slice against the cached version.

However, if the Web Slice includes a ttl property, the Feed Download Engine will use the specified value to adjust its update schedule. The frequency can also be adjusted in the Web Slice Properties dialog box. The following Web Slice elements are used to control the duration and frequency of update checks:. The time to live TTL value is the number of minutes during which a Web Slice is considered to be up to date. Unless the user has changed the update interval, the Feed Download Engine will consider this value to be the suggested update frequency.

Alternatively, an abbr object with a title attribute can be used to define the TTL. The inner text of the object can contain a user-friendly representation of time, as shown in the following example:. This property specifies an expiration time for the Web Slice. The date and time is specified in the title attribute, leaving the inner text of the element for a user-friendly representation of time, if needed. Note that the time zone offset is the actual time difference from UTC and does not automatically account for daylight saving time.

For example, the time zone offset for Seattle is "" in the winter Pacific Standard Time and "" in the summer Pacific Daylight Time. For best results, convert local time values to UTC or use the RFC date format to include information about daylight saving time.

When a user subscribes to a basic Web Slice, Internet Explorer returns to the Web page to check for updates. Returning to the original Web page to update a single Web Slice might be inefficient, especially if the Web page is large. For better control of network use, a Web Slice can declare an alternative source for updates.

Any Web Slice link that specifies a rel attribute of feedurl is treated as an alternative update source. When an alternative source is present, Internet Explorer will subscribe to the alternative source and no longer use the original Web page content to update the Web Slice. In the figure above, the two Web pages represent the same Web Slice. The user discovers and subscribes to the Web Slice on the original Web page, Basic.

However, the source of the Web Slice indicates that an alternative update source should be used, as shown in the following example:.

Although an empty link is not usually visible, it will create an extra tab stop that may be read by screen readers. To provide a better user experience, suppress the display of alternative links with display:none so that users do not accidentally navigate to these Web pages. Internet Explorer uses this Web page to get updates and notify users. The alternative update source might also point to a short RSS or an Atom feed that has only one item.

Note that an optional expiration time can be specified using the mon namespace and mon:endtime element, as shown in the following example:. When the Web Slice button is clicked, the entire entry-content element is displayed in the Web Slice preview window. The default width and height of the preview window are determined by the size of the container designated as entry-content.

Like the entry-title property, a Web Slice can include more than one entry-content , and all elements are combined to create a single preview. Instead, to perform related actions, you can provide links that include URL parameters. Navigation occurs within the currently selected tab. If additional functionality is required, use an Alternative Display Source. Styles from parent elements are not inherited by the Web Slice preview.

In the following example, the Web Slice preview does not display blue text, because the style is applied to the hslice instead of the entry-content element. Internet Explorer wraps the entry-content in a body element when rendering the preview.

This guarantees that style rules applied to the body element of a Web page are also applied to the body of the Web Slice preview. To apply a body style that is not inherited by the preview, use a class name or id to differentiate the body of the original Web page; then, write specific style rules for that element. In the following example, the green background applies to the original Web page but not to the preview. Important As of Internet Explorer 11 for the desktop, Web slice and Accelerator buttons no longer display within a webpage.

Use the Feed discovery button in the Command bar to access Web Slices. Accelerators are available from the shortcut menu. Authenticated Web Slices. This topic covers the security model of Web Slices and includes samples of authenticated scenarios in ASP. Subscribing to Content with Web Slices. This requires a Web site to duplicate some content as a special XML file, called a feed, that a news reader application can download and check for updates. In contrast, a Web Slice enables users to subscribe to content directly within a Web page; a separate feed file is not required.

Users monitor content changes and view the updated portion of the Web page directly from the Favorites bar the improved Links toolbar of Internet Explorer. Web Slice Format Specification - Version 0. A Web Slice allows users to subscribe to a portion of a Web page.



0コメント

  • 1000 / 1000