jQuery(function() {

    jQuery.getFeed({
        url: 'news-proxy.php?url=http://www.topix.net/rss/world/canada',
        success: function(feed) {
        
            jQuery('#result').append();
            
            var html = '';
            
            for(var i = 0; i < feed.items.length && i < 10; i++) {
            
                var item = feed.items[i];
                
                html += '<p style="line-height: 125%"><img src="images/disc.png" style="margin-right:8px">'
                + '<a target="_blank" href="'
                + item.link
                + '">'
                + item.title
                + '</a>'
                + '<br></p>';
               
            }
            
            jQuery('#result').append(html);
        }    
    });
});
