Hi,
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 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.
Both NS and IE seem to perform the write slowly, and in
multiple writes in rapid succession, some will be dropped.
Can someone help ?
Thanks
Ray 4 9216
Ray Schaeffer <re******@cox.n et> 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.fra mes['frame1'].document.close ()").
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?
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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Thanks for the reply
The code is below and comments interspersed.
Lasse Reichstein Nielsen wrote: Ray Schaeffer <re******@cox.n et> 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.frame 1.document.writ e(...". 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.fra mes['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: "...undocumente d 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>Fr ames Example</TITLE></HEAD>
<!-- divide into columns -->
<!-- 1st = 50 % -->
<!-- 2nd = whatever is left over -->
<FRAMESET COLS="50%,*">
<FRAME SRC="frame1.htm l" NAME="frame1">
<FRAME SRC="frame2.htm l">
</FRAMESET>
<BODY>
</BODY>
</HTML>
==== frame1.html =============== =============== =============== =====
<HTML>
<HEAD><TITLE>Fr ames Example</TITLE></HEAD>
<BODY>
</BODY>
</HTML>
==== frame2.html =============== =============== =============== =====
<HTML>
<HEAD><TITLE>Fr ames Example</TITLE></HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaS cript">
<!-- hide from old browsers
//
function doit()
{
//parent.frame1.d ocument.open();
parent.frame1.d ocument.write(" Hello<br>");
//parent.frame1.d ocument.close() ;
//alert("done");
}
//
// end script hiding -->
</SCRIPT>
Frame 2 text<BR>
Hello<BR>
<table border=1 cellpadding=3 bgcolor="#5cace e">
<!-- Buttons -->
<tr bgcolor="#5cace e">
<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>
Here is the error
=============== ==
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004001 (NS_ERROR_NOT_I MPLEMENTED)
[nsIEditorShell. GetSelectedOrPa rentTableElemen t]" nsresult: "0x80004001
(NS_ERROR_NOT_I MPLEMENTED)" location: "JS frame ::
chrome://editor/content/editor.js :: goUpdateTableMe nuItems :: line 2463" data: no]
=============== =
Thanks
Lasse Reichstein Nielsen wrote: Ray Schaeffer <re******@cox.n et> 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.frame 1.document.writ e(...". 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.fra mes['frame1'].document.close ()").
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?
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
Ray Schaeffer <re******@cox.n et> writes: If you close, to stop the loading, it appears that you cannot write to it again.
You can, but when you do, you open the document again, which
clears it. So the old line is erased, and a new, identical, line
is written.
Document.write is only meant for using while a document is being
loaded. That is why an opend document triggers the "loading" icon
stat in Mozilla/Netscape. There is no way to avoid this if you use
document.write to write the data to the new page.
Alternatives are using .innerHTML or DOM (where I prefer DOM):
var otherDoc = parent.frames['frame1'].document;
otherDoc.body.a ppendChild(othe rDoc.createText Node("Hello"));
a. "not work" = nothing written
I can see the problem in Mozilla.
b. I have gotten the JS console to give errors, but not can not make it repeatable. The error is somthing like: "...undocumente d error..."
I can't reproduce that, though. I am using Mozilla 1.5a (or usually
Mozilla Firebird 0.6). I don't get lost lines, slow writing or funny
error messages, so I can't help you with that.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.' This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mikko Tussunen |
last post by:
I wonder, what would be the best way to write content to another frame?
Meaning that as many browsers as possible supports it.
I have a frame that reloads with a 3 second interval, and depending on if
the user has entered information in a database (chat messages), it writes
the content to another frame. The content it has written before...
|
by: Bernard |
last post by:
Hi,
I am suddenly getting Safari script errors with the following user
agent:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML,
like Gecko) Safari/125.8
In a frameset scenario, the framesetting document (top) contains a
|
by: PhoneLover |
last post by:
Hi,
I have a page with this frameset:
<frameset cols="185,800*" frameborder="YES" border="2"
framespacing="2" rows="*" bordercolor="#FF0000">
<frame name="leftFrame" noresize src="SpagnoloLeftFrame.html">
<frame name="mainFrame" src="SpagnoloIntro.html">
in SpagnoloIntro.html I have put this javascript code (in the body):
|
by: imaband |
last post by:
Hi,
I've got a little Quizzer program that asks a question in the upper
frame of a frameset and then lists the answer in the lower frame.
Answers can be plain text, straight html, a sound, or a LINK. I have a
function that builds the answer frame using document.write(among other
things). This code works fine until you encounter a link. It...
|
by: Jofio |
last post by:
In my frame based page, I have a hyperlink in the top frame called
"header" which, when I click, should make two different pages to be
loaded and displayed into two different frames, namely "thumbnails"
frame and "main" frame simultaneously.
My framed page is defined as follows:
<frameset rows="15%,*,15%">
<frame src="headerWelcome.html"...
| |
by: dana lees |
last post by:
Hi,
I'm writing a C# asp.net web application.
I have a frameset in which the upper frame contains a "print" button and the
lower frame contains content of a different domain. Since i cannot call
window.print() in another domain, i'm trying to trigger an event in my lower
frame that will call window.print() itself...
How can i do that?
|
by: Svenn Bjerkem |
last post by:
Hi,
Armed with Programming Python 3rd Edition and Learning Python 2nd
edition I try to write an application which I at first thought was
simple, at least until I was finished with the GUI and then wanted to
start putting some data into it.
As you will see, the program is not yet finished but I post what I have
so far.
|
by: ArrK |
last post by:
I want to use a control frame to create and/or modify the content
(images and text) of a display frame - all files and images are client
side. . When I try to write to the
display frame from the control frame I get the error message:
"window.parent.pictureFrame has no properties" and all content of the
display frame disappears. My plan was to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |