Creating Channels Using CDF Document

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
A cdf document is an XML document and hence it follows the rules of XML. A cdf document begins with an XML declaration. The CHANNEL element is the root element of all cdf documents. The CHANNEL element should contain the HREF attribute, which contains the link to the page being monitored for changes. The following example illustrates a simple CDF document:

<?xmI version=" 1.0"?>

<CHANNEL HREF="http://pentasoftech.com/index.html">

</CHANNEL>

A channel can contain a collection of other pages that are identified by the ITEM. Each ITEM element has a corresponding HREF attribute which identifies a page. Channels are often shown in collapsible tree structure.

To add this channel to your web browsers channel folder the following steps have to be followed:

1 . Save the above lines of code in a file called add.cdf.

2. Open this file from windows explorer.
Once you open this file you will be prompted with a screen as shown below. Click OK to add this channel to the channels folder.

After adding the new channel, it is now listed in the browsers channel folder. The following screen shows this.

After creation of the cdf file it must be made available to the user. An easy way to do this is to link the cdf file with a standard HTML <A> tag. A example of how this is done is shown below:

<A HREF = "add.cdf ">Add Pentasoft's Home page to Channels</A>

When the user activates this link in a CDF enabled browser such as InternetExplorer 5.0, the browser downloads this file and adds the channel to its list of subscriptions.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.