Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. $.ajax({
  2. url: '/featured-homesites/rss.xml',
  3. type: 'get',
  4. data:{},
  5. dataType: 'xml',
  6. success: function(data){
  7. $(data).find('channel item').each(function(){
  8.  
  9. var body = "";
  10. var title = $(this).find('title').text();
  11. var neighborhood= $(this).find('category:eq(1)').text();
  12. var lotSize = $(this).find('category:eq(2)').text();
  13. var directLink = $(this).find('link').text();
  14. var description = $(this).find('encoded').text();
  15.  
  16.  
  17.  
  18. body += "<div class='post-body clearfix homesite-post' style='display:inline-block'>";
  19. body += description;
  20. body += "</div>";
  21.  
  22.  
  23. $("#homesites").append($("<div />",
  24. html:body
  25. )
  26. );
  27.  
  28.  
  29.  
  30. });
  31. },
  32. error: function(){
  33. $(".timeline").text("Failed to get feed");
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement