lrz feed via jsonp

jquery exampe1

by jamitzky

HTML

<div id="posts"></div>

JavaScript

function RSSFeed(){}
RSSFeed.Entries = function(feed_url, callback){
    requestURL = "http://pipes.yahoo.com/pipes/pipe.run?_id=NvfW_c9m3hGRjX4hoRWqPg&_render=json&_callback=?&feed=" + feed_url;
    $.getJSON(requestURL, function(json, status){
        callback(json.value.items, status);
    });
}    
RSSFeed.Entries("http://www.lrz.de/aktuell/rss/", 
    function(json, status){
        var content = "";
        $.each(json, function(i){
            postTitle = "<a href=\"" + this['link'] + "\">" + this['title'] + "</a>";
            content += "<p class=\"posts\">" + postTitle + "</p>";
        })   
        $("div#posts").html(content);
    })