I'm using DynAPI 2.54 with IE5.5 and Netscape4.76. My code uses an XML/XSL parser that can be attached to a layer to dump it's parameters recreate it later. The output of the parser is producing many layer creation lines similar to this:
myLayer = DynAPI.document.addChild(new DynLayer(null,248,97,116,32,'blue',null,null,null,'Hello World')); There is no text displayed in the layer and a getHTML returns a null. I can setHTML after creation as a workaround but wondered if a problem crept into the library. This is pretty standard layer creation stuff so could somebody check this and see if something broke in 2.54. Thanks Jim Sloey The actual output of the XML/XSL parser is: <HTML><HEAD><SCRIPT LANGUAGE="Javascript" SRC="../src/dynapi.js"></SCRIPT><SCRIPT LANGUAGE="Javascript"> DynAPI.setLibraryPath('../src/lib/'); DynAPI.include('dynapi.api.*'); DynAPI.include('dynapi.event.*'); DynAPI.include('dynapi.gui.*'); DynAPI.include('dynapi.ext.*'); DynAPI.onLoad=function() { myLayer_1 = DynAPI.document.addChild(new DynLayer(null,248,97,116,32,'blue',null,null,null,'Hello World')); myLayer_1.css.fontWeight='bold'; myLayer_1.css.fontFamily='Arial,Helvetica,sans-serif'; myLayer_1.css.color='#0000a0' myLayer_2 = DynAPI.document.addChild(new DynLayer( null,248,156,107,31,'green',null,null,null,'Name<br>Title' )); myLayer_3 = DynAPI.document.addChild(new DynLayer( null,428,106,130,52,'red',null,null,null,'<b>My Company</b><br>Address1<br>Address 2<br>Address 3' )); myLayer_4 = DynAPI.document.addChild(new DynLayer( null,442,179,96,32,'orange',null,null,null,'Department Logo' )); myLayer_5 = DynAPI.document.addChild(new DynLayer( null,440,220,106,44,'magenta',null,null,null,'Telephone<br>Cell/Pager<br>Fax ' )); }</SCRIPT></HEAD><BODY></BODY></HTML> _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help