Svante B�rjesson wrote:
> Hi!
>
> I'm having problems when writing content dynamically into NS layers. The
> content appears in the positioned layer, but a ghost layer also appears at
> (0,0) with the same text but unformatted. Very annoying. Anyone know if this
> is avoidable and how?
>
> I use the document.layers["layername"].write(text) function to to do this.
> In IE writing to .innerHtml works like a charm.
>
> Oh, and in NS 6 this soesnt happen, but I don't seem to be able to measure
> the width and height of the newly written layer.
>
> Any clues?
First of all, you're in the wrong group. This newsgroup is for work on
the Mozilla project (http://www.mozilla.org/) and not for Netscape
Communicator issues.
Secondly, Netscape 6 is based on Mozilla, and therefore does not support
proprietary features like document.layers. Instead, use the W3C-standard
DOM (http://www.w3.org/DOM/).