You can use this function (using a text only editor like NotePad, add it to the end of the gfeedfetcher.js file):
Code:
function removefeed(feed, removelabel){
var labels = feed.feedlabels, i = -1, keptfeeds = {};
while (++i < labels.length){
if(labels[i] !== removelabel){
keptfeeds[labels[i]] = feed.feedurls[i];
}
}
feed.feedcontainer.innerHTML = '';
feed.feeds = {};
feed.feedlabels = [];
feed.feedurls = [];
for(var f in keptfeeds){
feed.addFeed(f, keptfeeds[f]);
}
feed.feedlabels.length && feed.init();
}
For example:
Code:
function validate1(){
var yahoo = document.getElementById('yahoo');
if (yahoo.checked){
example3.addFeed("Yahoo", "http://dir.yahoo.com/rss/dir/getrss.php?arts");
example3.init()
} else {
removefeed(example3, 'Yahoo'); //clear rss feed
}
}
Just be aware that, if example3 has no other feeds, it will be empty after removing it's only feed.
Bookmarks