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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

error with lightbox 2.04: element.dispatchEvent is not a function


Go to End


6132 Views

Avatar
bebabeba

Community Member, 193 Posts

3 November 2008 at 10:57pm

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>