Thanks for the reply
The code is below and comments interspersed.
Lasse Reichstein Nielsen wrote:
Ray Schaeffer <re******@cox.net> writes:
I've written a very simple test HTML/JS program where
the JS code in one frame writes to a different frame with
"parent.frame1.document.write(...".
This seems to work ok with IE-6, but with NS-7, after the
first write, the "loading" seems to loop forever
The "loading" state stays until you close the document again
(i.e., "parent.frames['frame1'].document.close()").
If you close, to stop the loading, it appears that you cannot
write to it again.
and if you click on "stop", the write will not work anymore.
Also in NS, if you push reload, the write will not work anymore.
How "not work". What does the javascript console say?
a. "not work" = nothing written
b. I have gotten the JS console to give errors, but not can not make
it repeatable. The error is somthing like: "...undocumented error..."
Both NS and IE seem to perform the write slowly, and in multiple
writes in rapid succession, some will be dropped.
Weird, but that's all I can say without seeing the code.
/L
==== Parent ================================================== =====
<HTML>
<HEAD><TITLE>Frames Example</TITLE></HEAD>
<!-- divide into columns -->
<!-- 1st = 50 % -->
<!-- 2nd = whatever is left over -->
<FRAMESET COLS="50%,*">
<FRAME SRC="frame1.html" NAME="frame1">
<FRAME SRC="frame2.html">
</FRAMESET>
<BODY>
</BODY>
</HTML>
==== frame1.html ==================================================
<HTML>
<HEAD><TITLE>Frames Example</TITLE></HEAD>
<BODY>
</BODY>
</HTML>
==== frame2.html ==================================================
<HTML>
<HEAD><TITLE>Frames Example</TITLE></HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from old browsers
//
function doit()
{
//parent.frame1.document.open();
parent.frame1.document.write("Hello<br>");
//parent.frame1.document.close();
//alert("done");
}
//
// end script hiding -->
</SCRIPT>
Frame 2 text<BR>
Hello<BR>
<table border=1 cellpadding=3 bgcolor="#5cacee">
<!-- Buttons -->
<tr bgcolor="#5cacee">
<form NAME="roundit">
<td> <font face=arial size=-1> <b> <p align="center">Rounding</p> </b>
</font>
</td>
<td>
<p align="center"><input TYPE="text" NAME="roundval" SIZE=1> </p>
</td>
<td>
<p align="center"><input TYPE="button" VALUE=" Set "
Onclick="doit()"></p>
</td>
</form>
</tr>
</table>
</BODY>
</HTML>