I have done some testing on creating layers on Mac and came out with
this:
NS4 can create x nested layers (then no layers will be visible at all),
but how
many x are, seems to depend on browser-version. NS 4.75 could create 44,
NS4.6 created 46 layers but hanged to whole system, NS 4.78 created 60
layers
and so on. NS didn't create more layers when I increased the memory used
by Netscape, so it seems like it is most depending on browser-version.
deleteAllChildren() works in NS4x if there aren't too many nested layers
too delete. My tests showed that 4.78 could delete up to 30 nested
child-layers
(remember this layers didn't have any event listeners, drag events or
more
content then just a number). 4.75 had a top of 20 nested layers.
IE5 has some problems when creating or deleting too many layers
(creating more than 62) and shows a js-error ("out of stack space").
this happens as well when unloading the page and more than 23 nested
layers was created. A strange thing I noticed was that if I created 62
nested
layers (works OK) and manually call DynAPI.deleteAllChildren() (which
basically is what the unload-handler does, DynAPI.onUnLoadCodes is
empty)
everything is working fine (no "out of stack space"-errors) and the page
can
be unloaded without any errors.
In real life we probably won't need >40 nested layers but i thought it
could be useful for you guys to know how Mac seems to handle this.
/martin
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/