designMode for 2 iFrames bugs in Geckos

K

KenA

Hi. Apparently in Geckos I can have only 1 iFrame per page with
designMode="On" ... or maybe i´m wrong?


================================================================================
ifrmNum=1;
function DesignModeGecko()
{
iFrameId = "ifrm" + ifrmNum;
document.writeln( 'Toolbar Here' );
document.writeln( '<br />' );
document.writeln( '<iframe id="'+iFrameId+'"' + ' name="' + iFrameId + '"'
+ ' src="Blank.htm" width="500" height="250"></iframe>' );
//document.getElementById(iFrameId).contentDocument.designMode="On";
setTimeout( function() {
document.getElementById(iFrameId).contentDocument.designMode="On"; }, 500 );

if( ifrmNum==2 )
{
document.getElementById("ifrm1").contentDocument.designMode="On";
//then ifrm2 will be off : looks like in Geckos I can have only 1 ifrm
with designMode == on
}

++ifrmNum;
};

DesignModeGecko();
document.writeln( '<br />' );
document.writeln( '<br />' );
DesignModeGecko();
================================================================================

In IE I can set designMode="On" to as many iFrames as I want. I also tryied
to delay it a bit with setTimeout, but with no success???

»»» KenA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top