Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » error with lightbox 2.04: element.dispatchEvent is not a function

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

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

Page: 1
Go to End
Author Topic: 4782 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    error with lightbox 2.04: element.dispatchEvent is not a function Link to this post

    Hi!
    I'm using lightbox 2.04.
    I read topic where explain to cancel <? xml.. for document.write() error.
    My problem is that I can't use lightbox for the following error:

    element.dispatchEvent is not a function
    [Break on this error] element.dispatchEvent(event);

    I add ths script and css in themes/mytheme/tempalte/Page.ss

    <style type="text/css">
              @import url(themes/hairdresser/css/lightbox.css);
    </style>

    <script type="text/javascript" src="themes/hairdresser/javascript/js/prototype.js"></script>
       <script type="text/javascript" src="themes/hairdresser/javascript/js/scriptaculous.js?load=effects,builder"></script>
       <script type="text/javascript" src="themes/hairdresser/javascript/js/lightbox.js"></script>

    4782 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.