Looks good for RSS2.
My only concern is what the code may look like if you need to support RSS1 / RDF and ATOM ?
I don't think it will become a mess; I wrote a php rss/atom parser before and it's not so hard to be compatible with both formats without having a huge chunk of conditions in your code.
It's probably a contentious area but it seems to me the cleanest way to do this would be to use a _javascript_ XSLT implementation (Google or Sarissa) to parse the specific RSS XML and apply a stylesheet. I guess the downside of this approach is that XSLT libs consume a bit of bandwidth...
Sure you can do that. But there may be many among us who are not experienced with XSLT. People who develop with the Scriptaculous library will quickly understand and be able to use this class. It's just another flavor :)
Well, that's the view from my ivory tower anyways ;-)
Great view from there! ;)
Matt
Best,
Robin
Robin Schuil wrote:Hi Matt,
It is based on the RSS 2.0 specification (http://blogs.law.harvard.edu/tech/rss) and should be backward compatible with all previous versions. Currently it does not support Atom feeds, but that's on my todo list and will be added soon.
Best,
Robin
On 5/24/06, Matt Spendlove <[EMAIL PROTECTED]> wrote:What versions of RSS / Atom etc does it support ?
Robin Schuil wrote:Hi all,
I'm happy to announce that I've completed the first version of my Ajax.RssReader object. It needs some extra's, but the basic functionality is now available. You can download it from http://www.sayoutloud.com/_javascript_s/rssreader.js
Usage:
function myCallbackFunction( rss ) {
alert(rss.channel.title);
for(n=0; n<rss.items.length; n++) {
alert(rss.items [n].title);
}
}
function myErrorHandler( rss ) {
alert( 'An error has occured.' );
}
new Ajax.RssReader( 'http://www.mysite.com/feed.xml ', { onSuccess: myCallbackFunction, onFailure: myErrorHandler } );
Please send me your comments and suggestions.
Best,
Robin
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
