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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

[SOLVED] Thickbox not working in Silverstripe


2 Posts   823 Views


3 March 2011 at 10:25pm Community Member, 81 Posts

I'm trying to get thickbox working on my [url=]site[/url] (on topmenu: link: "mail een vriend"). In IE everything works fine. In FireFox and Chrome it doesn't work. Only the background fades, but nothing appears. In my Firebug I get the following error:

An invalid or illegal string was specified" code: "12
(function(a,b){fucntion b$(a){return d... a==="string"?a:a+"px")}}}})(window); in link jquery-1.5.min.js?m=1299143404 (rule 16)

I tried to install a older version of jQuery, but it didn't help. also installing the module didn't work out.

What's wrong?


4 March 2011 at 1:04am Community Member, 81 Posts

I found the error. It was in the doctype. XHTML doesn't support document.write();

I changed the following code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="nl" >

to the next code