title: Uncaught TypeError: Object [object Object] has no method 'attachEvent'
body: <p>trying to make a lightbox work on my server , but i get theese 2 errors </p>
  
  <blockquote>
    <p>Uncaught TypeError: Object [object Object] has no method 'attachEvent'  prototype.js:6490
    Uncaught TypeError: Object [object Object] has no method 'dispatchEvent'  prototype.js:6598</p>
  </blockquote>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects,builder"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="\Content\js\lightbox.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="\Content\css\lightbox.css" type="text/css" media="screen"&gt;
  </code></pre>