Dashboard > OSL Monitor > ... > Modules > RSS-Feed
OSL Monitor Log In   View a printable version of the current page.
RSS-Feed
Added by SebastianWagner, last edited by SebastianWagner on Jun 23, 2006  (view change)
Labels: 
(None)

> home > Documentation > Modules

As a direct connection from Flash/Laszlo/[JavaScript] to a RSS-Feed is forbidden by security Policy ( http://en.wikipedia.org/wiki/Cross-site_scripting) all RSS-Feed are loaded thru the PHP-layer. That means PHP does a real HTTP-Request to a RSS-Feed URL.This is handled by fsockopen ( http://de.php.net/fsockopen ). This should work everywhere ... to use a simple fopen you would have to set a php-ini-var (allow-url-fopen).
So in generall the HTTP-Request is send and the Response will be parsed by an PHP-XML-Parser (no [RegExp]). If the Respones Status Code is 302 ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3) the PHP-Layer will try to load the RSS-Feed by the URL of the "Location-Field" of the http-response. It should be possible to load all RSS 0.9/1.0/2.0 RDF/Atom-Feeds thru that but please try and test your favorite. I'll add some free configurable client.

The RSS-Feed will be parsed into an Array which looks serialized like that:
<item>
    <link>http://anway</link>
    <title>blbla</title>
    <description>blabalbalablab</description>
</item>

Do we need more Information from a RSS-Feed like link/title/description?

It took long to handle RSS-Feeds which have HTML in the description of their feed items. They will now all be urlencoded ( http://www.php.net/urlencode ) before send. The Client uses Javascript Function unescape ( http://www.javascripter.net/faq/unescape.htm ) to get the real HTLM-Tags before the text is set in the [FeedList].

At the moment ( http://bigscreen.osuosl.org/oslmon/dev/) it just loads some example/default RSS-Feeds which will be shiped with the oslmon out of the box. I'll replace that by some configured RSS-Feeds which will be loaded from the configuration-database-table for that modul.

Stuff missing:

-A refresh button for manual refresh(at the moment time driven 60 sek)
-Mark the button of the RSS-Feed which is selected (needs to be done later .. there is a layout-bug in the [OpenLaszlo] Server)

 
You can also use the RSS-Modul on your WebSide as Solo application:

http://bigscreen.osuosl.org/oslmon/rssfeedsolo/

Or as a Wordpress-Plugin for your Blog-Page:

http://bigscreen.osuosl.org/oslmon/wordpress/rssfeedreader/

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators