2011年11月26日 星期六

ThickBox 解決在Updatepanel裡的問題

在thickbox.js裡找到
$(function () {
    tb_init('a.thickbox, area.thickbox, input.thickbox'); 
    imgLoader = new Image(); // preload image    
    imgLoader.src = tb_pathToImage;
});
改成
function pageLoad(sender, args) {
    tb_init('a.thickbox, area.thickbox, input.thickbox'); 
    imgLoader = new Image(); // preload image
    imgLoader.src = tb_pathToImage;
 
}
參考http://www.cnblogs.com/lion/archive/2010/10/08/1845732.html