[英]Wordpress Thickbox Integrated but not Working
My blog, mberkompas.com , uses wordpress with a thickbox integration. 我的博客mberkompas.com使用wordpress与thickbox集成。 Although all the the thickbox files are loaded and the images have a thickbox class, they still load in a new tab. 虽然加载了所有的thickbox文件并且图像具有thickbox类,但它们仍然会加载到新选项卡中。
When examining my JS console, I discovered that thickbox.js is encountering an error. 在检查我的JS控制台时,我发现thickbox.js遇到错误。
thickbox.js:26Uncaught TypeError: Object #<Object> has no method 'live'
I'm still an amateur at jQuery and don't quite no what's going on. 我仍然是jQuery的业余爱好者并不是没有发生什么事。 Any help would be greatly appreciated. 任何帮助将不胜感激。
The error I am getting (checked with Firebug ) is inside this function (inside thickbox.js): 我得到的错误(使用Firebug检查)在此函数内(在thickbox.js内):
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
jQuery(domChunk).live('click', tb_click);
}
It says the live()
method couldn't be found. 它说无法找到live()
方法。 You are using jQuery version 1.2.x and the live() method was added in version 1.3.x. 您使用的是jQuery 1.2.x版,并且在1.3.x版中添加了live()方法 。 So, upgrading jQuery to latest version, or at least a 1.3.x version, would fixed that bug. 因此,将jQuery升级到最新版本,或者至少升级到1.3.x版本,将修复该错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.