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.

Archive

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

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

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


Reply

4910 Views

Avatar
bebabeba

3 November 2008 at 10:57pm Community Member, 192 Posts

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>