So You Want An Active Channel, Huh?

[Active Channel? Hah?] [OK - I Clicked] [The Active Channel Format]
[What's that CDF Thing?] [XML? Hah?] [Do It Yourself CDF] [Other Commands]

     So, have you seen these things floating around lately:

 

You have to have IE4.0 for this to work

     They're pretty popular little pups with the Internet "in" crowd. In fact, requests to put together a tutorial on the subject of Active Channels have been filling the Goodies mailbox. So here we go. This is a basic instructional look at what an Active Channel is and how you can get one on your site.


Active Channel? Hah?

     You're to read that line above with a bit of an Archie Bunker voice. If you don't know who Archie Bunker is then boy do I feel old.
     An Active Channel is another idea from the laboratories of Microsoft. As such, you require the use of the Microsoft Explorer browser, version 4.0 or better, in order to get in on all the actively channeled fun.
     Think of it this way, the people that come to your site have the ability to set up a pathway in which you can "push" them information other than what is on the page. In activating this pathway, or channel, the user allows you a bit more leeway in bombarding them with information. You can push, or "pull" depending on what side of the argument you wish to be on, the user just about anything, a monthly newsletter, new site info, or a listing of new tutorials.
     What's more, the user who clicked to create an active channel with you now has an additional "bookmark" to your site. In fact, that's how people started referring to these little gems in the first emails. Users wanted to know how to create the fancy bookmark. So, if you haven't already clicked on a page in order to set up a channel, go ahead and click on the Active Channel logo above. You'll get a box that looks a lot like this:

 

Me John - Big Tree!

     For now, just choose to add the site to your channel bar as I have it earmarked in the above image. Go ahead. You can always delete it later.


OK - I Clicked

     Woohoo!! You clicked and fell right into my evil plan. I now own you and all that is yours! Ha ha ha ha ha ha! *sniff* We now return you back to your regularly scheduled reality already in progress...

      Now you have an active chanel set up with my site. To see the fruits of your labor, look at the very top of your browser window. There should be a button there marked "Channels". There's a little satellite receiver image right near it. Go ahead and click on that. The screen should split and you should see a little HTML Goodies logo next to the same little satellite dish image. If there's no image, you may need to run your mouse over the text. Then you'll get the image.


The Active Channel Format

     Now that you have a channel that links you right to my page, let me show you how to get one on your page so others can begin channeling through you. Hopefully someone will begin channeling Elvis soon. (Uh, thank you very much)

Here's the format:

<A HREF="http://www.htmlgoodies.com/goodies.cdf"><IMG SRC="add_chan.gif"></A>

     Notice it's little more than a basic HREF link command. The only real difference is that this link is headed toward a file with a CDF extension. See that above? The image I am using as the link is called add_chan.gif. But you don't need an image for it to work. You can put in straight text if you want. That little image is just how I usually see these things denoted on other web pages, so I'm using it here.


What's that CDF Thing?

     If you people would stop asking questions I could wrap these tutorials up much faster.
     CDF stands for Channel Definition Format. It's a text file that denotes what you have available on your site. And it's what sets up your Active Channel. Here's what my CDF file, named goodies.cdf, looks like:


<?XML VERSION="1.0" ENCODING="UTF-8"?>
<CHANNEL HREF="http://www.htmlgoodies.com" BASE="http://www.htmlgoodies.com">
<TITLE>HTML Goodies</TITLE>
<ABSTRACT>HTML/DHTML Tutorials and Java Script</ABSTRACT>
<LOGO HREF="http://www.htmlgoodies.com/goodieschannel.gif" STYLE="IMAGE"/>
</CHANNEL>


      The CDF above, and all CDF files for that matter are simple text. Just the same as any HTML document you've ever made. It's just text. That text is then saved to a file and the file is given the extension .cdf. Again, think of it as creating an HTML file, except you use the extesion .cdf instead of .html.

      Now, it may look like I've got a basic HTML file here with a few mistakes. Not so. You see, the CDF file is not written in HTML per se, but rather a cousin of HTML called XML, Extensible Mark-up Language. OK, now's when this thing starts to get a little goofy and people start to drop out saying "Ah, the heck with it."


XML? Hah?

     Archie Bunker again. XML is a format of mark-up language that is not "fixed" into a format like HTML. It is actually not a language at all, it is a meta-language that allows you to create your own set of commands and instructions, you programer you. It is designed to allow you to be able to write SGML (Standard Generalized Mark-up Language), the "mother-tongue" of all mark-up languages. But it looks better in the brochure.
     Be not afraid, the commads you will use for your CDF files will resemble HTML closely enough that you'll be able to create just what you need.
     If you'd like to delve deeper into XML and see how it's put together, try FAQ about the XML Language, or the W3 XML Page, or the Microsoft CDF Standards Page. I recommend the last one first.
     But if reading high-end computer language specs isn't your bag, let's just move forward to how to make your own CDF file.


Do It Yourself CDF

     Let's make a file the old fashion way - steal it from Joe.
     Go ahead and copy the little CDF file from above and paste it into a text editor like Notepad or SimpleText, or WordPad, or whatever you use to edit your HTML documents.

 Please Note:
     This CDF is about as basic as you can get. It does one thing - it sets up a channel. There are many more things you can do, and I'll get to them, but to get off the ground, we'll start with this.

     You can pretty much see where to change out the text to suit your needs, but just so you know what your doing, here's the CDF again, and what each part means:



Other Commands

     There are a slew of other commands that you can incorporate when you create your Active Channel. Here are a few to get you off the ground in the order of most useful, in my mind anyway.




That's That

     That's about all you'll need to put together your own active channel. All those fancy commands aside, the bulk of your work will be done by the short CDF format I showed way up at the top. Add an ITEM to distribute, and you'll be pretty much good to go. The rest of the commands do a good deal of fine tuning, but are not overly needed to create a solid channel for your viewers.