Explored. Designed. DeliveredSM |
|
|
Display RSS Feeds Using JSMFeed
JSMFeed.pl is a Perl script that converts RSS XML feeds into
standard browser side JavaScript in JSMsg convention. It takes a URL to an RSS
feed as input and outputs a JavaScript file containing all the information from
the RSS feed in JSMsg format. It can be called directly from the <SCRIPT
...> tag of a static web page to be run every time the page is displayed, or
it can be run occasionally from cron to output an updated JavaScript file. In
the latter case, the static JavaScript files can be linked directly by your
pages as well as by other sites if you choose to share it with them.
The JSMsg convention permits using standard DOM markup in a browser-neutral way
with great flexibility. For content sources that provide an RSS feed but do
not publish in JSMsg, JSMFeed.pl can be used to
dynamically or statically convert that RSS feed into JSMsg files. Since JSMsg
files are standard browser-side JavaScript, they can be shared with webmasters,
even if they don't have access to server-side scripting.
Download JSMFeed.pl Now, It's Free!
Use your forum or customer login to access the download page and download the current version. If you don't have a login at creativyst.com, simply register to the forums to get one. There is no charge, and your contact information is kept private (see our privacy statement for details). When you access the download page you will be asked for a login and password. Enter your chosen login name and password and you're in.
Using JSMFeed.pl
JSMFeed.pl can be used in two different ways to convert the XML of RSS feeds into
JSMsg JavaScript.
. . . . . . . Running JSMFeed.pl from cron or CL JSMFeed.pl can be used to convert RSS feeds and output the resulting JSMsg as a static JavaScript file. You can output this file to your document area and access it as you would any other JavaScript file on your site. This is also a great way to share your RSS feeds with the many webmasters who don't have access to server-side scripting. Another advantage to creating static JavaScript is that the script will not be run every time a page with an RSS feed is displayed. To invoke JSMFeed.pl in this way you specify the namespace ("ns") and source URL ("url"). Just add a dash in front of these parameter names when providing them on the command line or to cron. For example, with: -url=http://NewsPeak.com/feed.xml and -ns=np You may also tell it the name and path of the file you want the output to be placed in: -o=/doms/mydomain/www/feeds/np.js If you don't provide an output file JSMFeed.pl will send the file to stdout, so you can pipe and redirect. This is an example of what it might look like when your run it from your command line.
. . . . . . . Running JSMFeed.pl From HTML Once you've produced a JavaScript file you (or outside webmasters you wish to share with) may access the JSMsg feeds with a simple <SCRIPT> tag. Like this:
. . . There is another less than ideal way to use JSMFeed.pl to get a JSMsg file in your HTML. Because JSMFeed.pl outputs JavaScript, you can simply include it in the HEAD section of your HTML webpages using a <SCRIPT> tag, just as you would a satic JavaScript file. This is not the recommended way to use JSMFeed.pl because some browsers will try to begin running dependent scripts before dynamically generated scripts have been fully loaded. Another disadvantage of running JSMFeed.pl dynamically is that the script will be re-run every time your page is viewed. But, if you still want to do it this way, here's how:
. . . . . . . Displaying JSMsg content in your HTML In the above examples, the namespace was selected to be np. This allows you to access the provider's content by preceding the JSMsg access functions with "np." e.g.
Why Use JSMsg?
Why Are We Doing This?
There is no catch! JSMFeed will always be freely licensed for you to use. There is no ad-ware, no trial period, and we do not share, sell, or rent your registration information. We distribute JSMFeed as a way to drive traffic to this site. We are currently charged anywhere from five cents to fifty cents for each click-through (visit) to our site. The monetary value of this free licensing offer for us is that it drives visitors to our site for the cost of development and support. Whether or not this is a cost effective way to drive traffic remains to be seen (we'll be tracking it to be sure). The current trend is about five visits for each actual download. Of course, we're just getting started so those figures may change. So ;-) while you're here, why not have a look at our home page, or contact me.
Licensing and Permissions
JSMFeed.pl is a free download file produced by Creativyst, Inc. You may use Creativyst® JSMFeed.pl when producing Internet or intranet based web sites for yourself, your employer, or your clients, but you may not distribute it or derivatives as downloadable content, or part of a package. JSMsg is a shared convention developed and published by Creativyst, Inc. You may use JSMsg in commercial and open source projects, provided you give credit to Creativyst, Inc. and follow the conditions set forth in the convention document. This document is © Copyright, Creativyst 2002 - 2010 ALL RIGHTS RESERVED. Links to this page are always welcome. However, you may not copy, modify, or distribute this work without first obtaining express written permission from Creativyst, Inc. Those wishing to obtain permission to distribute this work or derivatives in any form should contact Creativyst. |