|
Here's a simple example of setting a parent
dynlayers html (to itself) and destroying its child.
Dev notes: I've checked the innerHTML and outerHTML
both before and after calling setHTML() and they are identical.
Why does this happen?? This doesn't seem like
reasonable behavior for this method. Is there a way to fix it? I'm
attempting to develop a lighter version of one of my widgets and need to use a
single dynlayer.
Here is a code snippet:
<html>
<head> <script language="Javascript"
src="../src/dynapi.js"></script>
<script language="Javascript"> DynAPI.setLibraryPath('../src/lib/'); DynAPI.include('dynapi.api.*'); DynAPI. {
aPanel=new DynLayer(null,150,200,300,150,'orange') aPanel.setHTML('hi') panel2=new DynLayer(null,30,30,100,50,'brown') panel2.setHTML('panel2') aPanel.addChild(panel2) DynAPI.document.addChild(aPanel) } </script> </head>
<body bgcolor="lightblue"> <form> <input type="button" value="Click me" > </form> </body> </html> Thanks for any help
Chris Shreve
|
