From: Robert R. <rra...@ya...> - 2001-02-26 16:58:37
|
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]=3Dthis That should fix it. --=20 // Robert Rainwater --=20 DynAPI Homepage: http://dynapi.sourceforge.net/ DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ On Monday, February 26, 2001 11:06:48 AM =E0=D2=C9=CA =F3=C9=CC=D8=D7=C5=D3= =D4=D2=CF=D7 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 DynDocu= ment, and DynLayer.toString() gives wrong reference. >=20 > <script language=3D"Javascript" src=3D"../src/dynapi.js"></script> > <script language=3D"Javascript"> > DynAPI.setLibraryPath('../src/lib/'); > DynAPI.include('dynapi.api.*'); > </script> > <script language=3D"Javascript"> >=20 > DynAPI.onLoad =3D function() { > myLayer =3D new DynLayer(null,100,100,100,100,'#c0c0c0') > DynAPI.document.addChild(myLayer) > eval(myLayer+".moveTo(100,100)") > } >=20 > </script> > Yura Silvestrov >=20 >=20 > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |