For a quick fix
open dynlayer.js in a notepad (located in api folder)
and replace the first function with this

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=a[9]||null;

 this.elm=null;
 this.doc=null;
 this.css=null;
};

the line that has changed is the addition of the 9th parameter which enables
html to be passed
as this was omitted on previous releases


note to dev team with sf admin access:
v2.55 could do with being released to the public ;)





----- Original Message -----
From: "Sloey, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 4:58 PM
Subject: [Dynapi-Help] Is it just me???


> 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
>

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to