Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Banners on silverstripe

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 2955 Views
  • HanSolo
    Community Member
    83 Posts

    Re: Banners on silverstripe Link to this post

    Hi I tried to put the script in CDATA block but got an error on that

    Fel: uncaught exception: [Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://www.topgear.se/ Line: 286"]

    Anyone got an idea on this?


  • Josh
    SilverStripe Developer
    65 Posts

    Re: Banners on silverstripe Link to this post


    I use quite a few JS banner scripts on my SilverStripe sites.

    Simply include the JS file in the necessary template. Disable content negotiator in mysite/_config.php and everything should work fine

    // For JavaScript, Xml and DocType

    You should also be placing your JavaScript code in mysite/javascript and never edit code in sapphire or cms.


Page: 1 2
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.