From: francesco A. <fa...@we...> - 2001-02-08 12:54:26
|
Hi, when i call deleteElement in Netscape 4 the layer is really deleted or is only hide? I have see that the layer is only set to hide. Can the Dom of netscape 4 really cancel an elemement from the memory? |
From: Michael P. <mp...@ph...> - 2001-02-08 13:47:28
|
no. the layer is only hidden. It is also placed in an array that is used when another DynLayer is created. This way, new layers are only created when needed. francesco AGATI wrote: > Hi, > > when i call deleteElement in Netscape 4 the layer is really deleted or is > only hide? > > I have see that the layer is only set to hide. > > Can the Dom of netscape 4 really cancel an elemement from the memory? > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev -- Michael Pemberton mp...@ph... ICQ: 12107010 |
From: Alex C. <c....@mu...> - 2001-02-09 01:44:14
|
Hi, I have glanced through the Dynapi code and realized that deleted layers are seldom recycled. I guess this is because when creating a new Layer in Netscape 4x, an initial width has to be specified to ensure proper wrapping of text. Thus, a deleted layer can only be recycled if the new layer to be created intend to have the same initial width. Please correct me if I am wrong. Alex Chong Michael Pemberton wrote: > no. the layer is only hidden. It is also placed in an array that is used > when another DynLayer is created. This way, new layers are only created when > needed. > > francesco AGATI wrote: > > > Hi, > > > > when i call deleteElement in Netscape 4 the layer is really deleted or is > > only hide? > > > > I have see that the layer is only set to hide. > > > > Can the Dom of netscape 4 really cancel an elemement from the memory? > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > -- > Michael Pemberton > mp...@ph... > ICQ: 12107010 > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Pascal B. <pa...@dy...> - 2001-02-09 15:24:19
|
Layers will always be recycled on NS4, no dependency on the size or anything. the Layer object is still in memory, and can be simply resized seeing that it's contents will be rewritten anyway. The layer's size is reset before the HTML is written into it.. so glance at it again :-) (and focus on the createElement() method) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Alex Chong > Verzonden: vrijdag 9 februari 2001 2:44 > Aan: dyn...@li... > Onderwerp: Re: [Dynapi-Dev] A simple question > > > > Hi, > > I have glanced through the Dynapi code and realized that deleted > layers are > seldom recycled. I guess this is because when creating a new > Layer in Netscape > 4x, an initial width has to be specified to ensure proper > wrapping of text. > Thus, a deleted layer can only be recycled if the new layer to be > created intend > to have the same initial width. Please correct me if I am wrong. > > > Alex Chong > > Michael Pemberton wrote: > > > no. the layer is only hidden. It is also placed in an array > that is used > > when another DynLayer is created. This way, new layers are > only created when > > needed. > > > > francesco AGATI wrote: > > > > > Hi, > > > > > > when i call deleteElement in Netscape 4 the layer is really > deleted or is > > > only hide? > > > > > > I have see that the layer is only set to hide. > > > > > > Can the Dom of netscape 4 really cancel an elemement from the memory? > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > -- > > Michael Pemberton > > mp...@ph... > > ICQ: 12107010 > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > |
From: Jordi \ilMaestro\ M. <jmi...@or...> - 2001-02-08 15:25:25
|
The only way to delete a layer in NS is rewrite the HTML of its parents. Something that can't be done in many cases. We could add this to deleteAllChildren(). francesco AGATI wrote: > Hi, > > when i call deleteElement in Netscape 4 the layer is really deleted or is > only hide? > > I have see that the layer is only set to hide. > > Can the Dom of netscape 4 really cancel an elemement from the memory? > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |