Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: '/featured-homesites/rss.xml',
- type: 'get',
- data:{},
- dataType: 'xml',
- success: function(data){
- $(data).find('channel item').each(function(){
- var body = "";
- var title = $(this).find('title').text();
- var neighborhood= $(this).find('category:eq(1)').text();
- var lotSize = $(this).find('category:eq(2)').text();
- var directLink = $(this).find('link').text();
- var description = $(this).find('encoded').text();
- body += "<div class='post-body clearfix homesite-post' style='display:inline-block'>";
- body += description;
- body += "</div>";
- $("#homesites").append($("<div />",
- html:body
- )
- );
- });
- },
- error: function(){
- $(".timeline").text("Failed to get feed");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement