我的網頁包含一些來自某些隨機站點的RSS提要。jQuery - 從動態RSS提要鏈接將外部網頁加載到div
這些供稿中有鏈接可將您帶到這些網站。無論如何要將這些網頁加載到我的網頁上的div?
問題我的是,當我創建我的RSS源時,這些RSS鏈接是動態創建的。
劑量任何人有任何建議嗎?
function showLTab(key)
{
var myObject = science[key];
var stage = $("#leftFeed").children('#tabContent');
//forming the query
//LIMT controls amount of tabs displayed in each feed
var query = "select * from feed where url='"+myObject.feed+"' LIMIT 5";
//changing URL to YQL
var url = "http://query.yahooapis.com/v1/public/yql?q="+encodeURIComponent(query)+"&format=json&callback=?";
$.getJSON(url,function(data){
//removes any previous feeds
stage.empty();
//item exists in RSS
$.each(data.query.results.item || data.query.results.entry,function(){
stage.append(myObject['function'](this));
})
});
$("#leftFeed").children('#activeTab').text(key);
}
function showLeftDropDown()
{
var activeTab = $("#leftFeed").children('#activeTab');
//creating drop down div
var dropDown = $('<div>').addClass('dropDownList').css({'top': 10, 'width': activeTab.width()}).hide().appendTo('#leftFeed');
$.each(science,function(i){
// populates dropdown div
if(i==activeTab.text()) return true;
$('<div>').text(i).appendTo(dropDown);
})
dropDown.slideDown('fast');
}
的問題是,我不知道該URL。這個網址是由RSS feed動態生成的...... – Daft
這能幫助你嗎? –