This has been fixed.

The problem was with line 84:

if(oc && oc.removeFromParent) oc.removeFromParent; //
remove old child

change it to:

if(oc && oc.removeFromParent) oc.removeFromParent();
// remove old child


This example should now work:

var t= 'some text [EMAIL PROTECTED] some text'
var tp = new Template(t,100,100,350,130,'#EEEEEE');
tp.addChild(new DynLayer('Test'),'fld1');

dynapi.onLoad(function(){
        tp.addChild(new DynLayer('First'),'fld1');
        tp.generate(); // very important!
});

dynapi.document.addChild(tp);

--
Raymond Irving


--- Daniel Tiru <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I found today that in a template its not working to
> replace fields with another part.
> 
> I mean, say i have a template with one field
> then i add a layer to that field. So far no problem.
> 
> But when i try to add another layer nothing happens.
> I think this is some bug in the addChild method in
> the templatemanager but i am not sure.
> 
> Regards
> Daniel Tiru
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built
> ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are
> available now.
> Download today and enter to win an XBOX or Visual
> Studio .NET.
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to