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/javascripts/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 Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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/javascripts/rssreader.js Usage: function myCallbackFunction( rss ) { alert(rss.channel.title); for(n=0; 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 Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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 <mspendlove506-YDxpq3io04c@public.gmane.org> 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/javascripts/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 > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Why dont use this one?? http://www.pdvel.com/stuff/js/XML/ This cass was started by Greg and I changed something On Wed, 2006-05-24 at 10:29 +0200, 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 <mspendlove506-YDxpq3io04c@public.gmane.org> 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/javascripts/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 > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Looks good for RSS2. My only concern is what the code may look like if you need to support RSS1 / RDF and ATOM ? 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... Well, that''s the view from my ivory tower anyways ;-) Matt 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 <mspendlove506-YDxpq3io04c@public.gmane.org> 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/javascripts/rssreader.js Usage: function myCallbackFunction( rss ) { alert(rss.channel.title); for(n=0; 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 Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi Matt, 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 <mspendlove506-YDxpq3io04c@public.gmane.org> 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/javascripts/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 > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs