2009-10-09 59 views
2

有人请告知我如何激活一个函数,一旦Thickbox关闭,这将不胜感激。当thickbox关闭时激活一个函数

function tb_remove() { 
    window.parent.pageUpdate();// << this is what i have tried 
    $("#TB_imageOff").unbind("click"); 
    $("#TB_closeWindowButton").unbind("click"); 
    $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();}); 
    $("#TB_load").remove(); 
    if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 
     $("body","html").css({height: "auto", width: "auto"}); 
     $("html").css("overflow",""); 
    } 
    document.onkeydown = ""; 
    document.onkeyup = ""; 
    return false; 
} 
+0

没有人知道吗? – 2009-10-09 11:20:34

回答

0

该函数调用应该能够工作 - 它适用于我的测试用例。

您是否使用Thickbox iframe?

+0

这对我来说也很完美 – Slee 2010-05-20 14:46:13