Quick question of turning designMode to on with FF version 2.x

D

Don Li

Hi,

With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?

Thanks.
 
M

Martin Honnen

Don said:
With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?

Should work the same, assuming you have
<iframe name="myFrame" src="foo.html"></iframe>
 
D

Don Li

Don said:
With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?

Should work the same, assuming you have
   <iframe name="myFrame" src="foo.html"></iframe>

Sorry, I should have been clearer. I'm not using src file reference,
instead, I'm assigning value dynamically to iframe.src.
 
M

Martin Honnen

Don said:
Don said:
With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?
Should work the same, assuming you have
<iframe name="myFrame" src="foo.html"></iframe>
Sorry, I should have been clearer. I'm not using src file reference,
instead, I'm assigning value dynamically to iframe.src.

Well your original code you asked about does not use the src property at
all, rather it tries to set designMode. And I told you that code should
worked unchanged with Firefox as long as you have an iframe with
name="myFrame".
 
D

Don Li

Don said:
Don Li wrote:
With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?
Should work the same, assuming you have
   <iframe name="myFrame" src="foo.html"></iframe>
Sorry, I should have been clearer.  I'm not using src file reference,
instead, I'm assigning value dynamically to iframe.src.

Well your original code you asked about does not use the src property at
all, rather it tries to set designMode. And I told you that code should
worked unchanged with Firefox as long as you have an iframe with
name="myFrame".

Beautiful, thank you.
 
D

Don Li

Don said:
Don Li wrote:
With IE7/6, once can state
window.frames['myFrame'].document.designMode = "On";
to turn the 'myFrame' to edit mode, how to accomplish the same thing
with FireFox version 2.x?
Should work the same, assuming you have
   <iframe name="myFrame" src="foo.html"></iframe>
Sorry, I should have been clearer.  I'm not using src file reference,
instead, I'm assigning value dynamically to iframe.src.
Well your original code you asked about does not use the src property at
all, rather it tries to set designMode. And I told you that code should
worked unchanged with Firefox as long as you have an iframe with
name="myFrame".

        Martin Honnen
       http://JavaScript.FAQTs.com/

Beautiful, thank you.- Hide quoted text -

- Show quoted text -

But now I find it tough to implement it, very easy to put
frames['itsChildren'] inside the
BODY tag, however, my attempt to embed it inside DIV or SPAN has not
succeeded, what other block tag out there if frames can be embeded
into them? Thanks.
 

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

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top