[Javascript] Updating text in a frame using JavaScript

BEKIM BACAJ Trojani2000 at hotmail.com
Mon Jun 4 18:42:28 CDT 2001


This is some sort of a "bug" I guess!

But it may not...

The document.write(),

method clears the previous document, that is the frame itself also. And the problems after it are very normal.

Try the history back for the frame you've just writen into, just before writing back to it. I think this will work you out of the problem.
P.S. Please, let me know If it worked out. If it don't I sugest you try using <DIV> or <Layer> innerHTML instead of document write.
//But I'm very sure it will work.



----- Original Message -----
From: JPS Computer Services
Sent: Tuesday, June 05, 2001 12:22 AM
To: javascript at LaTech.edu
Subject: [Javascript] Updating text in a frame using JavaScript


Hello All,

I am using top.framename.document.write(".....") to write to a frame from
another frame in the frameset.  The problem that I am encountering is that
when using the above code to write to the frame again the text is add to the
frame without clearing the current text first.  Is there anyway to clear all
the text in the frame I am writing to first?  I have tried
top.framename.document.clear() with no luck.  Thanks for any help given.


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript<br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010605/382e847f/attachment.htm>


More information about the Javascript mailing list