Closed Thread Icon

Preserved Topic: Tiny Netscape problem. Pages that link to <a href="https://ozoneasylum.com/backlink?for=17683" title="Pages that link to Preserved Topic: Tiny Netscape problem." rel="nofollow" >Preserved Topic: Tiny Netscape problem.\

 
Author Thread
Hew
Neurotic (0) Inmate
Newly admitted
posted posted 05-19-2001 05:08

I want to be able to transfer the contents of one layer to another. Or in other words get this to work. If that makes sense.

alert(document.layers['testDiv'].document.read());

Basically whats the Netscape4's version of alert(document.all.layerName.innerHTML);



icklepix

psych3
Nervous Wreck (II) Inmate

From: Australia
Insane since: Feb 2001

posted posted 05-19-2001 05:36

you have to use document.write for NS4 as it doesnt have an innerHTML equivalant.


----------------------
Eddie Traversa
DHTML NIRVANA
Multiple Award Winning Sites
Macromedia Resources & Various Other Goodies.
http://www.dhtmlnirvana.com/
--------------------------
Dynamic XHTML Developers Guide
Currently being written by Jeff Rouyer and little ol me
Let you know about a firm release date as soon as I know.
-----------------------------

Hew
Neurotic (0) Inmate
Newly admitted
posted posted 05-19-2001 14:52

I know that, but what I want is to 'send' the html of a Div to a string in Netscape. Basically ...document.write() backwards.

icklepix

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-21-2001 20:25

Hmm. Could totally be wrong but I don't think there is such a thing


Walking the Earth like Kane

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-21-2001 21:22

Yeah, I don't think that's possible in NN 4.x, but if you know what the text is yourself, you could store it in a separate variable for later reference, and just synchronize the variable and the page content, but that may be unrealistic if the document is large.

Hew
Neurotic (0) Inmate
Newly admitted
posted posted 05-21-2001 21:45

It okay, I've assumed that isnt possible and made a sort of workaround. You see the problem was I had a layer , that used that load(url,x) function to load a HTML into a layer, and I wanted to put that Html into another layer but changed slighty. What I have now is the HTML I wanted in the Layers, sent from a variable in a hidden frame to the layer.

(this means I cant used HTMl from a different server)

But thanks anyway.

icklepix

« BackwardsOnwards »

Show Forum Drop Down Menu