Activate the function when the fat box is closed

can someone PLEASE advise me how I can activate the function after the Thickbox is closed, that would be much appreciated.

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;
}

      

+2


source to share


1 answer


This function call should work - this is for my test case.



Are you using Thickbox iframe?

0


source







All Articles