Strange Lightbox / iframe / Java applet issue on Firefox -


i'm beating head against strange issue using combination of java applet running in iframe displayed inside lightbox on firefox.

when page displayed directly javascript call applet

document.appletname.send 

functions perfectly, when called inside lighbox (actually lightwindow) error returned

error: document.appletname.send not function 

this occurs on firefox in windows. ie, safari , chrome fine, firefox on ubuntu

for information applet wirefusion 3d presentation , can see applet running via lightbox box clicking on highland laddie 3d @ bottom of page, or directly in page containing lightbox.

i've tried adding javascript diagnostic code check applet exists , has correct name (it does). odd thing can see firefox applet appears start loading twice.

added: in response question. page being called in lightbox simple,

<div style="position:absolute; top:0px; left:0px"> <iframe id="mainframe"  src="http://www.tartanweb.com/laddie/highlandladdie.php" width="730px" height="670px" scrolling="no">   <p>your browser not support iframes.</p> </iframe> </div> <div style="position:absolute; top:15px; left:600px; z-index:1; width:30px;" > <a href="blank-width.html" class="lightwindow_action" rel="deactivate"><input type="button" value="close"></a> </div> 

so iframe , close button. javascript code giving trouble page called iframe. added javascript code in iframe check , reports 1 applet in page - applet can't being loaded twice inside page it's embedded in.

lightbox , clones cause trouble because move (or in worst event, copy) dom elements out of context lightbox container. might account iframe being loaded twice.

if applet not in iframe, guess lightbox duplicates applet, , subsequent calls document.appletname must fail. however, if java applet embedded in iframe, can't see how happen. maybe referencing applet outside iframe? can show referencing code?


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -