[問題] 關於jquery的plugin "superbox" 的問題

看板Ajax作者 (心中在下雨)時間16年前 (2009/09/30 11:19), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
我使用了 jquery 的 plugin "superbox" http://www.pierrebertet.net/projects/jquery_superbox/ 用iframe模式呼叫出視窗 但是我想要在iframe裡面將superbox自己關閉 (如:送出表單後自動關閉) 在iframe裡面的javascript應該要怎麼寫呢? 我在superbox的程式碼之中 找到 hideAll 這個funciton 就是關閉 superbox 我也知道在iframe中 window.parent.alert("hello"); 可以呼叫上一層的javascript 但是我應該要怎樣去呼叫superbox裡面的hideAll呢? 不然模擬按下close的按鈕也可以 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.219.24.245

10/05 11:43, , 1F
我是用fancybox調用方法是:
10/05 11:43, 1F

10/05 11:44, , 2F
parent.top.$('#fancy_close').trigger('click');
10/05 11:44, 2F

10/05 11:44, , 3F
應該也是大同小異
10/05 11:44, 3F

10/15 17:46, , 4F
感謝你!!!
10/15 17:46, 4F
文章代碼(AID): #1Amiue-Z (Ajax)
文章代碼(AID): #1Amiue-Z (Ajax)