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, Ed, biapar, Willr, Ingo

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

Go to End



Community Member, 193 Posts

3 November 2008 at 10:57pm

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/

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

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