RSSApplet - XML tools - exploring XML | WebReference

RSSApplet - XML tools - exploring XML

RSSApplet 1.2 User documentation

What is RSSApplet?

RSSApplet is a Java applet that displays news headlines stored in the Rich Site Summary (RSS) XML format.

What is RSSApplet good for?

RSSApplet is a simple way to display RSS news from your Web site. Just copy the sample HTML, replace the src parameter with your news feed, and you are ready to roll. For an even more convenient method to display WebReference news try the RSS Configurator.

What does RSSApplet do?

RSSApplet reads RSS newsfeeds from a given URL and displays the resulting headlines. Style parameters let you choose colors and fonts to have the applet match your Web site's look and feel.

What doesn't RSSApplet do?

RSSApplet, as the name implies, is a Java applet. Therefore it has to adhere to the Java security rules, most importantly it can only connect back to the host it came from to fetch the RSS news feed file. This means the src parameter needs to have the same host name as the archive and codebase attributes. If you want to display RSS feeds from a different site, get their webmaster to put the applet somewhere on their site, too, and embed this remote applet into your HTML like so:

<APPLET code=com.exploringxml.rss.applet.RSSViewerApplet.class 
  archive=http://www.webreference.com/xml/rssApplet.jar 
  codebase=http://www.webreference.com/ width=300 height=300>
<PARAM name=src value=http://www.webreference.com/xml/index.rss>
</APPLET>

How do I incorporate RSSApplet into my Web site?

Incorporating RSSApplet into your own site is fairly simple:

How do I use RSSApplet?

RSSApplet displays the headlines parsed from the given RSS source URL and displays them according to the many style parameters that can be supplied:

ParameterTypeDescription
srcStringURL of RSS file
box.foregroundintbox foreground color
box.backgroundintbox background color
box.borderintbox border width
title.foregroundinttitle foreground color
title.backgroundinttitle background color
title.foreground.mouseoverinttitle foreground color on mouse-over
title.background.mouseoverinttitle background color on mouse-over
title.font.familyStringtitle font family
title.font.sizeinttitle font size
title.font.styleStringtitle font style
item.foregroundintitem foreground color
item.backgroundintitem background color
item.foreground.mouseoverintitem foreground color on mouse-over
item.background.mouseoverintitem background color on mouse-over
item.font.familyStringitem font family
item.font.sizeintitem font size
item.font.styleStringitem font style
item.marginintitem margin

Can you give me an example?

Sure. The RSSApplet Configurator produces the necessary HTML snippet to copy and paste as well as a preview of the applet's configuration for one of the many WebReference newsfeeds. Give it a try!

Where is the Javadoc of RSSApplet?

Right here.

What is the licence of RSSApplet?

RSSApplet is published under the GNU Public License. Feel free to use it on your Web site.

Where do I send feedback, suggestions, gripes?

When you are using RSSApplet, I'd like to hear from you. Just send me feedback.

Where can I find useful information on RSS?

Congratulations, you've come to the right place ;-)

Further reading

http://www.internet.com

Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/tools/rssapplet.html
Created: Mar. 19, 2001
Revised: Mar. 19, 2001