Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

ThickBox won't work with self closed tags

Go to End

3 Posts   3024 Views


Community Member, 9 Posts

22 January 2009 at 11:20pm

Edited: 22/01/2009 11:22pm

First off, I used ThickBox probably over 100 times and have customized the source code a lot as well.

My problem is making anything a gallery using the rel="" method just totally breaks thickbox. It just shows the loader gif and runs on and on. If you take out the rel="" it works 100% fine.

I have done numerous tests and found out that it breaks with the <script> tags are self closed like <script > rather than <script></script>

I am placing my script tags directly into the template in the head. Things I have tried are:

  • • Removed ALL other JS code from SS except jQuery and ThickBox
  • • Added alerts to the start and finish of both jQuery and ThickBox and all alerts show up
  • • Tried append() and prepend() jQuery functions to try to add the script tags after SilverStripe changed them, no luck. They wont even appear.
  • • Tried it locally with same HTML Head (xml head and XHTML 1.1 DOCTYPE) but with <script></script> and it works. With <script > it totally breaks. this is also on an HTML page with nothing but 3 <a> and <img>s, 2<script>s (jQuery and ThickBox), and one <link> (thickbox.css). other than that it's barebones.
  • • Testing this in FF3
  • • Also tried other module windows and they are also breaking, but swfObject, jQuery, and my own code JS and jQuery code works fine.

anyone have any ideas?

[edit reason] you guys should really put in bullets/discs for bbcode ulists.


Community Member, 1 Post

4 February 2009 at 7:07am

Download the other jQuery file that is referenced on the site. That should do it. Definitely needs to be addressed on the thickbox site.

Good Luck


Community Member, 39 Posts

20 September 2009 at 6:15pm

I know this a bit late in this thread, but this may save someone else some frustration...

The issue is using Thickbox with a newer version of JQuery. The Solution: See this post for the full details.