1
我有以下代碼,我想知道每次單擊Dynamic Post時顯示微調圖像的代碼放置位置或導航回主列表頁面時的位置:在Google Ajax中顯示頁面加載微調器
function initialize() {
var feed = new google.feeds.Feed("http://howtodeployit.com/category/daily-devotion/feed/");
feed.setNumEntries(8);
feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
var posts = '<ul data-role="listview" data-filter="true">';
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
posts += '<li>';
posts += '<a href="#articlepost" onclick="showPost(' + id + ')">';
posts += '<div class="ui-li-heading">' + entry.title + '</div>' ;
posts += '<div class="ui-li-desc">' + n_date + '</div>';
posts += '</a>';
posts += '</li>';
}
posts += '</ul>';
// Append each list of posts to #devotionlist in html page
$("#devotionlist").append(posts);
//$("#devotionlist").listview('refresh');
}
});
}
google.setOnLoadCallback(initialize);
我試圖看到了一些代碼,但沒有對我的作品......
人產生具有透明背景的新裝載機的想法或者我應該在此示例中使用$就重寫我的代碼: $ .ajax {{beforeSend:function(){$ .mobile.showPageLoadingMsg(); },//顯示微調器 complete:function(){$ .mobile.hidePageLoadingMsg()},//隱藏微調器 – Chelseawillrecover