Bug #132540, was updated on 2001-Feb-15 08:42 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Closed Resolution: None Bug Group: None Priority: 5 Submitted by: nobody Assigned to : nobody Summary: Adding child inline layer failes in NS4.7 Details: I am not sure if it's possible to fix it. Hear goes the code. No text appears in NS4.7. Is is important due to adding inline layer to ScrollPane. <html> <head> <script language="Javascript" src="js/dynapi/src/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('js/dynapi/src/lib/') DynAPI.include('dynapi.api.*') DynAPI.include('dynapi.ext.inline.js') </script> <script language="Javascript"> DynAPI.onLoad=function() { var parent1 = new DynLayer( null, 100,100, 200, 200 ); var layer1 = this.document.all['layer1'] parent1.addChild( layer1 ); DynAPI.document.addChild( parent1 ); parent1.setBgColor( 'red' ); layer1.setBgColor( 'yellow' ); } </script> </head> <body> <div id="layer1" style="position:absolute; color:black;">This is a test</div> </body> </html> Follow-Ups: Date: 2001-Feb-15 09:58 By: dcpascal Comment: Sadly this can't be solved. Problem: is that in NS it's not possible to retrieve the innerhtml (contents of the layer). When you add the child to the parent layer it is recreated, but since the HTML contents is not set it will not set it again. workaround: do the setHTML after the adding to the parent manually.. losing the inline layer advantage of easy text inserting, but also the only way I can think of. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=132540&group_id=5757 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev