Jump to:

22996 Posts in 11844 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » [SOLVED] Thickbox not working in Silverstripe

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

Page: 1
Go to End
Author Topic: 765 Views
  • quanto
    Avatar
    Community Member
    79 Posts

    [SOLVED] Thickbox not working in Silverstripe Link to this post

    I'm trying to get thickbox working on my site (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 sunny.svnrepository.com-thickbox-r2003 didn't work out.

    What's wrong?

  • quanto
    Avatar
    Community Member
    79 Posts

    Re: [SOLVED] Thickbox not working in Silverstripe Link to this post

    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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="nl" >

    to the next code

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    765 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.