jquery - 当厚盒关闭时激活功能

标签 jquery 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;
}

最佳答案

该函数调用应该有效 - 它适用于我的测试用例。

您使用的是 Thickbox iframe 吗?

关于jquery - 当厚盒关闭时激活功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1542479/

相关文章:

php - 如何将一些类添加到 wordpress 菜单链接?

javascript - 当 View 从操作结果返回时,Select2 脚本无法正确渲染

javascript - 如何将数据从一个html页面传递到php中的第二个页面?

jquery - 如何使用jQuery动态添加表单元素

jQuery 选项卡在厚盒内不起作用

jquery - 单击按钮时关闭 jQuery 厚盒

javascript - bootstrap tooltip\popover - 解决左侧放置不一致的问题

jquery - $(this).qtip 不是函数

asp.net - 从粗框控件中获取值