document.open("text/html", "replace") doesn't work for frames !

document.open("text/html", "replace") doesn't work for frames !

Post by Gary Bronso » Tue, 09 Oct 2001 05:30:14



To all,

This code *will not work in IE6 when trying to replace the contents of
another frame. It used to work great in IE5 and IE5.5. Any work arounds or
suggestions would be great. It works fine when you use it to replace the
current document (document.open("text/html", "replace")). I even moved the
script to the rightFrame and called it from the other frame and it still
doesn't work.

*will not work means it adds the new contents to the history when it should
be replaced.

<script>
function replace(){
    var oNewDoc = parent.frames.rightFrame.document.open("text/html",
"replace");
    var sMarkup = "<HTML><HEAD><TITLE>New Document</TITLE><BODY>Hello,
world</BODY></HTML>";
    oNewDoc.write(sMarkup);
    oNewDoc.close();

Quote:}

</script>

Thanks,
GaryB

 
 
 

1. document.open("text/html","replace") with frames problem

To all,

This code *will not work in IE6 when trying to replace the contents of
another frame. It used to work great in IE5 and IE5.5. Any work arounds or
suggestions would be great. It works fine when you use it to replace the
current document (document.open("text/html", "replace")). I even moved the
script to the rightFrame and called it from the other frame and it still
doesn't work.

*will not work means it adds the new contents to the history when it should
be replaced.

<script>
function replace(){
    var oNewDoc = parent.frames.rightFrame.document.open("text/html",
"replace");
    var sMarkup = "<HTML><HEAD><TITLE>New Document</TITLE><BODY>Hello,
world</BODY></HTML>";
    oNewDoc.write(sMarkup);
    oNewDoc.close();
</script>

Thanks,
GaryB

2. How prevent file deletes?

3. Problem whit system("rmdir $ntdir") and system("md $ntdir");

4. Shortcut to Exe on file share

5. "My Documents" - using "search" and "Send to"

6. cant save pics from internet,mail.....

7. |||||"""" How do I lock a CDROM """"|||||

8. default settings for xp

9. Cannot open "Tools,Internet Options" ("option cancelled")

10. WMEncoder 9 "Beta" worked, "Release Candidate" doesn't

11. WMEncoder 9 "Beta" Works, But "Release Candidate" Doesn't

12. WANTED """ NT 3.51 Training Videos """" WANTED

13. can't access "windows explorer" , "my computer", "control panel"