0
這可能很容易,但我在搜索時沒有找到任何東西, 我需要在覆蓋圖結束時刷新父項。 任何幫助非常感謝。JQuery工具覆蓋重新加載父項關閉
感謝Jcolebrand,這個工程
$("a.help[rel]").overlay({
effect: 'apple',
onClose: function(){
window.location.reload(true);
},
onBeforeLoad: function() {
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
// load the page specified in the trigger
wrap.attr('src', this.getTrigger().attr("href"));
}
});
所以要刷新父頁面? – jcolebrand 2011-06-02 02:52:56
關閉覆蓋 – Erocanti 2011-06-02 02:56:17
所以你不能只是設置window.location屬性或somesuch? window.location.reload(true)也許? – jcolebrand 2011-06-02 02:57:56