I'm getting this error in FireFox:

Error: jQuery(domChunk).live is not a function Source File: http://www.bradford.nhs.uk/wp-includes/js/thickbox/thickbox.js?ver=3.1-20110528 Line: 26

This is the function:

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
    jQuery(domChunk).live('click', tb_click);

Thickbox seems to be a build in WordPress feature but the theme we are using uses prettyPhoto.

  • I have changed this to .bind but it has caused other errors such as Aug 1 '11 at 9:50
  • Error: element.dispatchEvent is not a function Source File: http ... www......uk /wp-admin/load-scripts.php?c=0&load=jquery,prototype,utils,scriptaculous-root,scriptaculous-builder,scriptaculous-effects,scriptaculous-dragdrop,scriptaculous-slider,scriptaculous-controls&ver=496be2cb050e55197c680d4612290054 Aug 1 '11 at 9:51
  • Any plugins that re-register jQuery, from the sounds of it, something is registering an older version of jQuery, which does not support have the live function.
    – t31os
    Aug 1 '11 at 10:34
  • Correct - the version showing is 1.2.6 in the thickbox.js but the actual version I am loading is 1.6.1 Aug 1 '11 at 10:57
  • Is jQuery only loaded once, ie. if you check the source of the page is there only 1.6.1, or are you seeing any other versions output? Any possibility of seeing a page with the problem?
    – t31os
    Aug 1 '11 at 11:10

I used jQuery(domChunk).bind instead. This seems to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.