Mike B
Mike B

Reputation: 2706

Wordpress Thickbox Integrated but not Working

My blog, mberkompas.com, uses wordpress with a thickbox integration. Although all the the thickbox files are loaded and the images have a thickbox class, they still load in a new tab.

When examining my JS console, I discovered that thickbox.js is encountering an error.

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. Any help would be greatly appreciated.

Upvotes: 3

Views: 2149

Answers (1)

AJJ
AJJ

Reputation: 7701

The error I am getting (checked with Firebug) is inside this function (inside 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. You are using jQuery version 1.2.x and the live() method was added in version 1.3.x. So, upgrading jQuery to latest version, or at least a 1.3.x version, would fixed that bug.

Upvotes: 1

Related Questions