Skip to content
July 2, 2012 / Danii Oliver

Working RSS Reader

<script type=”text/javascript”>
type: “GET”,
url: “Movies.rss”,
dataType: “rss”, //or xml
success: function(xml) {
var title = $(this).find(‘title’).text();
var link = $(this).find(‘guid’).text();
var description = $(this).find(‘media\\:description’).text();
var writer = $(this).find(‘dc\\:creator’).text();
var date = $(this).find(‘pubDate’).text().substring(‘0′,’16’);
$(‘#feeds’).append(‘<div class=”items”><a href=”‘+link+'”><h2>’+title+'</h2></a><p class=”date”>’+date+'</p><p class=”writer”>’+writer+'</p><p class=”brief”>’+description+'</p></div>’);
<div id=”feeds”>
<div class=”items” id=”link_’+id+'”></div>



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: