I'm getting a weird behavior in Windows IE5.5.
When I set the HTML of a parent the child disappears.
It's still there but invisible despite visible being true. Here's a scaled
down version that shows the problem. Any ideas???
<HTML>
<HEAD><TITLE>The child layer disappears in IE5.5</TITLE>
<script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/')
DynAPI.include('dynapi.api.*')
DynAPI.onLoad=function() {
// Make a surface layer
theSurface=new
DynLayer(null,100,100,300,300,"#ffaaaa","true",100);
DynAPI.document.addChild(theSurface)
theSurface.setHTML("<b>Parent</b>")
// Add a child
theSurface1=new
DynLayer(null,100,100,100,100,"#aaaaff","true",200);
theSurface.addChild(theSurface1)
theSurface1.setHTML("<center>Child Inside the
Parent</center>")
}
</script>
</HEAD>
<body>
<a href='javascript:theSurface.setHTML("<b>Parent Killed Child</b>")'>Click
to setHTML.</a><br>
<a
href='javascript:alert("\nX="+theSurface1.getX()+"\nY="+theSurface1.getY()+"
\nZ="+theSurface1.getZIndex()+"\nParent
Z="+theSurface.getZIndex()+"\nVisible="+theSurface1.getVisible()+"\nHTML="+t
heSurface1.getHTML())'>Where is the child?</a>
</body>
</html>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help