Post update! I have been away from this blog for quite a while now; sometimes things turn in a way you wouln’t expect… Since this post seems to still be pretty active, I’m planning an update to include some explanation,more context and feedbacks. Please be patient and thanks for your suggestions:)
I’ve finally decided to post another no-brainer JQuery plugin: a simple news box fed by an RSS feed. You can see an example on our project’s home page. I had found the idea on the JQuery mailing list but loving plugins (although not really good at it) I decided to wrap it up a bit.
The result is quite simple: just place a div somewhere and initialize it with a feed URL:
<script language="JavaScript" type="text/javascript"> $('#rightcolumn').feedreader({ targeturl: 'http://blogs.atalayasec.org/atalaya/?feed=rss2' }); </script> ... <div id="rightcolumn"> </div>
There are two other configuration options available; how many posts to put in the news box and the length of the text to be displayed for each item. A complete initialization would be then like the following:
$('#rightcolumn').feedreader({ targeturl: 'http://blogs.atalayasec.org/atalaya/?feed=rss2', items: 3, descLength: 15 });
The code is pretty rough (and not really js-style) but functional. In case it’s useful to someone.
