Bugs item #458613, was opened at 2001-09-04 21:42 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=458613&group_id=5757 Category: DynAPI 2 API Group: Unverified Status: Open Resolution: None Priority: 5 Submitted By: Craig Martin (craigmartin) Assigned to: Nobody/Anonymous (nobody) Summary: dynlayer.js missing a piece of code Initial Comment: This is my first post to this site so I will try to make it short and sweet. I noticed that the following code was not working properly: myLayer=DynAPI.document.addChild(new DynLayer (null,200,300,50,85,'#FF0000','visible',2,null,'Test')) Everything was working except for the adding of the word 'Test' in the new layer. I went into the dynlayer.js file to see what was going on and I noticed the following: function DynLayer() { this.DynObject = DynObject; this.DynObject(); var a=arguments; if(a[0]) this.setID(a[0]); this.x=a[1]||0; this.y=a[2]||0; this.w=a[3]||null; this.h=a[4]||null; this.bgColor=a[5]||null; this.visible=(a[6]!=false && a[6]!='hidden'); this.z=a[7]||0; this.bgImage=a[8]||null; this.html=null; this.elm=null; this.doc=null; this.css=null; }; For some reason this.html was not given a place in the array being created for the new layer (at least this is how I'm reading the code. I have not dissected the whole thing so my terminology might be wrong.) Anyway, I changed this one line to: this.html=a[9]||null; And now the HTML content (in my example 'Test') appears without a problem. I thought you might want to make this fix for the next version of DynAPI 2. I have included the 'fixed' dynlayer.js file with this posting. Thank you for your hard work and an open-source environment in which we can all learn and use DHTML! Later, Craig Martin ---------------------------------------------------------------------- Comment By: Andy Short (sh0rtie) Date: 2001-09-15 20:44 Message: Logged In: YES user_id=176079 these was allready addressed in the latest 2.54 release please download the latest version thanks ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=458613&group_id=5757 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-dev