I updated CVS with a fix. I forgot to add parent layers to the .doc.
Only children were added.
If you add to the first line of assignChildren:
this.dyndoc.all[this.id]=this
That should fix it.
--
// Robert Rainwater
--
DynAPI Homepage: http://dynapi.sourceforge.net/
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
On Monday, February 26, 2001 11:06:48 AM àÒÉÊ óÉÌØ×ÅÓÔÒÏ× wrote:
> This code works with snapshot from 22.02.2001 but not with snapshot from 25.02.2001.
>The problem is in fact, that DynLayers never assigns to DynDocument, and
>DynLayer.toString() gives wrong reference.
>
> <script language="Javascript" src="../src/dynapi.js"></script>
> <script language="Javascript">
> DynAPI.setLibraryPath('../src/lib/');
> DynAPI.include('dynapi.api.*');
> </script>
> <script language="Javascript">
>
> DynAPI.onLoad = function() {
> myLayer = new DynLayer(null,100,100,100,100,'#c0c0c0')
> DynAPI.document.addChild(myLayer)
> eval(myLayer+".moveTo(100,100)")
> }
>
> </script>
> Yura Silvestrov
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev