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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


5691 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>