Creating Active Desktop ItemsCreating Active Desktop Items*
*



Contents  *



Index  *Topic Contents

*Previous Topic: Netcaster CDF Compatibility Notes
*Next Topic: Creating Software Update Channels

Creating Active Desktop Items

The Microsoft® Internet Explorer 4.0 Active Desktop™ is capable of hosting any HTML item, such as Web pages, Java applets, ActiveX™ Controls, floating frames, and images. With this technology, users can create a highly customized environment that automatically brings their favorite Web content to the desktop. Web publishers can leverage their existing tools and production processes to enhance their Web content with Dynamic HTML support. The resulting integration of the desktop and the Web benefits users through an enhanced and easier Web experience. Web publishers also benefit from the increased presence in the users' working environment.

For the latest information about Active Desktop items, refer to the list of Frequently Asked Questions (FAQ) in the Internet Client SDK.

arrowr.gifOverview: Active Desktop and Active Channels

arrowr.gifPublishing Information on the Active Desktop

arrowr.gifHow the Active Desktop Works

arrowr.gifActive Desktop Item Development Guidelines

arrowr.gifHow to Develop an Active Desktop Item

Overview: Active Desktop and Active Channels

Until now, the primary target for Web-based content has been the browser window. Most Web publishers today are forced to optimize their content to fit into a medium-sized browser window, based on the default window size of the browser. Internet Explorer 4.0 opens new opportunities for content by enabling your content to grow beyond the browser window, in two directions at once. The first direction lets you offer your customers a more focused browsing experience by taking over the entire screen, minimizing most of the "chrome" (toolbars) surrounding your content, and taking full advantage of Dynamic HTML extensions. This helps Web publishers provide a multimedia experience that is more engaging than anything currently possible inside a browser window. This is the idea behind Active Channels.

At the same time, Internet Explorer 4.0 enables your content to grow in a second direction. Now you can augment your content offering by providing your customers a more immediate, condensed experience. This is accomplished with lightweight entry points to top-level summaries and headlines in a small HTML page displayed directly on the user's Active Desktop. This HTML page presents top-level links and lets your customers point and click to open a larger window and absorb the details waiting underneath. This is the idea behind items on the Active Desktop.

For the user, Active Desktop items and Active Channels complement each other to provide different types of information in a useful manner. In a typical situation, users would log onto their computer and immediately see your Active Desktop item (along with several others) on their desktop. The user scans your Active Desktop item to see highlights and news as of the last scheduled update. The user can then click on any link inside the item to see the full story. At this point, the Active Desktop item can launch the user directly into your Active Channel instead of loading the associated URL into a regular browser window. This example illustrates how the Active Desktop item presents the content summary and the Active Channel presents the details.

For the content provider, Active Desktop items and Active Channels are also a great match. This is because the same knowledge and experience you build when authoring an Active Channel also applies to authoring Active Desktop items. Both Active Channels and Active Desktop items use Dynamic HTML to make the most engaging use of their screen area, while at the same time conserving bandwidth. It is important to note that both Active Channels and Active Desktop items require a separate Channel Definition Format (CDF) file to configure their update schedules and presentation requirements.

Active Desktop Features

Because Active Desktop items and Active Channels leverage the same technology, many of the features that apply to Active Channels also apply to Active Desktop items. These features include:

Subscriptions Icons are placed in the Subscriptions folder to let users manage update schedules and notification attributes.
CDF Support Subscription icons are based on the information in a CDF file that you author. The CDF file contains special tags to alert Internet Explorer 4.0 that the content is intended for use as an Active Desktop item. Additional CDF elements are available to control how the item is displayed and when it is updated.
Personalized Active Channels and Passwords Personalized password-based access to a Web publisher's content is available. Since an Active Desktop item is just a tiny Web page, navigating to the content is the same as navigating to a page in a browser window, so you can use a CDF file to support automatic login and password verification.

Publishing Information on the Active Desktop

The following sections describe how Web publishers can create and display content in an Active Desktop item. Examples of Active Desktop item installations are provided at http://www.microsoft.com/ie/ie40/gallery.

Active Desktop items are placed beside existing desktop shortcuts to give users a highly customizable space for creating dynamic links to their favorite Web content. Active Desktop items are typically designed to provide summary information in a small amount of screen space. Most items offer hot spots so the user can click on that area of the item to open a new browser window; the user can then read the full story or browse through the rest of the Web site. The following screen snapshot shows an example of an Active Desktop hosting two Active Desktop items on the right side of the screen, with the standard desktop shortcuts placed on the left edge of the screen.

Active Desktop items

Possible Active Desktop items include:

Active Desktop items are completely customizable:

Active Desktop items are an evolution of Internet Explorer 3.0 desktop shortcuts. They can be any size or shape and can display any HTML-based content. Items are dynamic and can be configured to update at regularly scheduled times, so their content is always up to date. As part of the information delivery system in Internet Explorer 4.0, the URL associated with any Active Desktop item is automatically added to the user's Subscriptions folder. This has the following effects:

Site subscription data flow

How the Active Desktop Works

The Active Desktop in Internet Explorer 4.0 is built from two separate layers. The transparent icon layer exposes all the user's existing desktop shortcuts, and the background HTML layer hosts all Active Desktop items. The HTML layer is described by a single, local HTML file called Desktop.htm that is created and edited automatically by Internet Explorer 4.0. This file contains the following:

Active Desktop layers

Active Desktop Item Development Guidelines

An item is nothing more than a small, borderless frame that displays a Web page and is embedded on the Active Desktop. The Web page can contain anything that a standard Web page can contain, including ActiveX Controls, Java applets, Dynamic HTML, and so on. The Active Desktop lets the user add and remove the frames at will, as well as adjust their size and position with the mouse.

Users can choose to create an Active Desktop item out of any existing Web page, but the best ones are Web pages that have been specifically designed to be used as Active Desktop items.

When designing an Active Desktop item, there are several guidelines to keep in mind.

How to Develop an Active Desktop Item

The process for creating an Active Desktop item is very similar to the process for developing a simple channel. In fact, the same steps apply:

  1. Design the Active Desktop item.
  2. Create the CDF file.
  3. Post the CDF file.
  4. Offer the Active Desktop item to users.

Design the Active Desktop Item

An Active Desktop item is just a small Web page. This page gets embedded in the user's Active Desktop as a floating frame inside a single Desktop.htm file that describes the user's HTML wallpaper and all other Active Desktop items.

Note Try implementing Dynamic HTML in your Active Desktop item. It is common for an Active Desktop item to cycle through a set of headlines or summary information. Dynamic HTML makes it possible to achieve this effect without using Java or ActiveX code.

Create the CDF file

Creating a CDF file is very similar to creating a CDF file for an Active Channel. The primary rule is that you are required to create a separate CDF file for each Active Desktop item or Active Channel you author. For more information about CDF elements and their syntax, see the documentation on CDF Extensions for Active Desktop Items and the CDF Reference for Active Channels.

Basic syntax: The ITEM and USAGE elements

The CDF for an Active Desktop item must include at least one ITEM element under the top-level CHANNEL element with a USAGE child element marked as "DesktopComponent" (see the example below). It is this USAGE element that tells Internet Explorer the CDF file refers to an Active Desktop item, as opposed to an Active Channel. The CDF file should also include a SCHEDULE element to indicate when the item will be updated.

Additional ITEM elements

Since an Active Desktop item is comprised of a single HTML page, the only ITEM you need to include in the CDF file is the small Web page you want to embed in the user's desktop. This should be marked with the USAGE element as indicated in the example below. If you like, you can include additional ITEM elements for each page that the Active Desktop item links to. Including these as ITEMs in the CDF file has the additional benefit of keeping those pages "subscribed to" and available for offline viewing. The ITEMs other than the actual Active Desktop item URL are not exposed to the user. Note that this differs from Active Channels, which present a hierarchical list of their ITEM tags to the user in the form of the Internet Explorer Channel Pane.

CDF restrictions on Active Desktop items

The following restrictions are placed on CDF files for Active Desktop items:

Active Desktop item CDF example

The following example shows a CDF file for an Active Desktop item.

<?XML version="1.0"?>
<Channel>

        <Schedule STOPDATE="1998.11.05T08:15-0500">
                <IntervalTime DAY="1"  />
                <EarliestTime HOUR="12"/>
                <LatestTime   HOUR="18"/> 
        </Schedule>

        <Item HREF="http://www.microsoft.com" LastMod="1996.11.05T08:15-0500">

                <Title>My News Ticker</Title>    <!-- Friendly name               -->

                <Usage VALUE="DesktopComponent"> <!-- Required                    -->
                        <OpenAs VALUE="HTML"/>   <!-- "HTML" (default) or "Image" -->
                        <Width  VALUE="200" />   <!-- Width in pixels             -->
                        <Height VALUE="80"  />   <!-- Height in pixels            -->
			<CanResize VALUE="Yes"/> <!-- Yes (default) or No	    -->
                </Usage>
        </Item>

        <!-- Other Item tags may go here.  IE4 won't display them anywhere, but   -->
        <!-- will use them for site crawling and place them in the user's cache. -->

        <Item HREF="http://www.foosports.com/topstories.html" LastMod="1996.11.05T08:15-0500" >
        </Item>

</Channel>

Post the CDF File

Post the CDF file by making it publicly available on your Web servers.

Offer the Active Desktop Item to Users

As with Active Channels, a link or button should be placed on any Web page that references the CDF file to allow users to subscribe to the new Active Desktop item. When the user clicks the link, Internet Explorer 4.0 automatically detects the USAGE element, which tells it that the CDF refers to an Active Desktop item. Internet Explorer 4.0 then activates the Active Desktop item Subscription Wizard on the user's computer and allows the user to receive updated information about this Active Desktop item. As the content contained in the Active Desktop item is added, removed, or modified, Web publishers should update the CDF file to reflect the changes. Information about button images and scripts used for enabling subscriptions is available in the Active Channels documentation.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.