I'm playing around with layers & child layers. It seems like an assumption I 
made is wrong perhaps.

I thought that I could create a layer, A, and add another layer B...and as 
long as the HTML in B and A weren't in the same spot they'd both show up. I 
recall seeing this before when playing with other people's code.

I tried:
pane = new DynLayer(null,160,160,800,360,null);
DynAPI.document.addChild(pane);
aLayer = new DynLayer(null,50,50,400,20,null);
aLayer.setBgColor('red');
pane.addChild(aLayer);
aLayer.setHTML('asdf');
--------> Everything works as I thought
pane.setHTML('blah')
--------> This makes the child layer's HTML disappear

How/Why does <parent>.setHTML mess with the child's html, etc?
I even tossed in a aLayer.setHTML('blah') after the pane.setHTML, but 
couldn't get the child's HTML back.

What's going on?
Thanks,
Cheers
-James

p.s.  Thanks for the replies about the prototype/inheritance models. I 
understand classic OOP inheritance, just couldn't make sense of the 
javascript syntax. I'll read through that netscape doc, it looked like it 
had some examples.


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to