jQuery 1.3 (or 1.3.1) + Thickbox 3.1 = Broken: It Loads Forever

Posted by ryan in jquery

At least a week after upgrading to jQuery 1.3.1, I discovered that all my Thickbox images had cease to function. If you're here, then you've already made the biggest step towards recovery: discovering that your thickbox is broken.

Fixing Thickbox 3.1 for jQuery 1.3.

As of jQuery 1.3, the The '@' in [@attr] has been removed. Thickbox uses this on line 79. The solution is simple: just remove the @:

// thickbox.js

// old line 79
TB_TempArray = $("a[@rel="+imageGroup+"]").get();

// new line 79
TB_TempArray = $("a[rel="+imageGroup+"]").get();

You can also download the full file here: thickbox3.1-fixed.js.

Thanks for the shares!
  • StumbleUpon
  • Sphinn
  • del.icio.us
  • Facebook
  • TwitThis
  • Google
  • Reddit
  • Digg
  • MisterWong
Posted by Hasentopf on 2009-02-11 times THANK YOU!
Posted by Jeff on 2009-02-19
I can't thank you enough. This was driving me crazy! Thanks a ton!!!
Posted by Lake on 2009-02-21
Hey, thanks.
Posted by tx8 on 2009-02-21
Thanks a lot !
Posted by Monitotxi on 2009-04-01
Thank you! Saved me a lot of time and troubles :)
Posted by Chuck on 2009-04-25
Thank you, Thank you, Thank you
Posted by ???? on 2009-05-31
Posted by Thomas B. Higgins on 2009-07-27
Blessings on you!
Posted by vox on 2010-02-11
what about the compressed .js?
Posted by vox on 2010-02-11
ah, search for {E=$("a[@1N="+g+"]") and delete the @ (about column 1076)