> There are two solutions to your problem:
> 1. Make the child layer independent from the parent layer.
> 2. Recreate the child layer when you rewrite the parent's html.

Or simply make both layers children:

myParent=new Dynlayer()

myParent.outerLayer=new Dynlayer()
myParent.addChild(myParent.outerLayer)

myParent.canvas=new Dynlayer()
myParent.addChild(myParent.canvas)

DynAPI.document.addChild(myParent)

and then:
myParent.outerLayer.setHTML('blah')
myParent.canvas.setHTML('blah')

Richard

----- Original Message -----
From: "Stephan Tolksdorf" <[EMAIL PROTECTED]>
To: "Paul Anderson" <[EMAIL PROTECTED]>
Sent: 18 July, 2001 11:20
Subject: Re: [Dynapi-Help] Outer Layer Re-Write issue - PLEASE HELP.


> > I have no idea why this is doing this. I cannot beleive that the child
layer
> > is completely obliterated just by an HTML rewrite of the outer layer. I
must
> > be doing something wrong.... Please Help !!!
>
> You have to believe this. If you look at the html representation of
> layers you will see why a html-rewrite causes the child layer to
> disappear:
>
> <div id="Layer">
>     <div id="ChildLayer"></div>
> </div>
>
> If you rewrite the html of "Layer" you will overwrite "ChildLayer".
>
> There are two solutions to your problem:
> 1. Make the child layer independent from the parent layer.
> 2. Recreate the child layer when you rewrite the parent's html.
>
> Stephan
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to