title: Strange Lightbox / iframe / Java applet issue on Firefox
body: <p>I'm beating my head against strange issue using a combination of a java applet running in an iframe displayed inside a lightbox on Firefox.  </p>
  
  <p>When the page is displayed directly an javascript call to the applet</p>
  
  <pre><code>document.appletname.send
  </code></pre>
  
  <p>Functions perfectly, however when called from inside a lighbox (actually <a href="http://www.stickmanlabs.com/lightwindow/" rel="nofollow noreferrer">lightwindow</a>) then the error is returned</p>
  
  <pre><code>Error: document.appletname.send is not a function
  </code></pre>
  
  <p>This only occurs on Firefox in Windows.  IE, Safari and Chrome are fine, as is Firefox on Ubuntu</p>
  
  <p>For information the applet is a Wirefusion 3D presentation and you can see the applet running via the lightbox box by clicking on <a href="http://www.tartanweb.com/" rel="nofollow noreferrer">Highland Laddie 3D at the bottom of the page</a>, or directly in the <a href="http://www.tartanweb.com/" rel="nofollow noreferrer">page containing the lightbox</a>.</p>
  
  <p>I've tried adding javascript diagnostic code to check that the applet exists and has the correct name (it does). The only odd thing I can see is that with Firefox the applet appears to start loading twice.</p>
  
  <p>ADDED: In response to a question.  The page being called in the lightbox is very simple, just this </p>
  
  <pre><code>&lt;div style="position:absolute; top:0px; left:0px"&gt;
  &lt;iframe id="mainframe" 
  src="http://www.tartanweb.com/laddie/highlandladdie.php" width="730px" height="670px" scrolling="no"&gt;
    &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
  &lt;/iframe&gt;
  &lt;/div&gt;
  &lt;div style="position:absolute; top:15px; left:600px; z-index:1; width:30px;" &gt;
  &lt;a href="blank-width.html" class="lightwindow_action" rel="deactivate"&gt;&lt;input type="button" value="Close"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So just the iframe itself and a close button.  The javascript code giving the trouble is the page called by the iframe.  I added javascript code in the iframe to check and it reports just one applet in the page - so the applet can't be being loaded twice inside the page it's embedded in.</p>