Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $("#container").append('<p> memes </p>');
- $.ajax({
- $("#container").append('<p> memes </p>');
- type: "GET",
- url: "rss_bbc_world.php",
- cache: false,
- dataType: "xml",
- jsonp: "callback",
- success: parse_rss
- });
- });
- function parse_rss(xml) {
- //get feed
- $("#container").append('<p> memes </p>');
- $(xml).find('item').each(function(index, item) {
- var item_title;
- item_title = $(item).find("title").text();
- //var image_url = $(xml).find("thumbnail").last().attr("url");
- //$('#title_div').append(item_title);
- //adding all titles to each title_div atm
- $("#RSSoutput").append('<p> memes' + item_title + '</p>');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement