Beta 4 getTemplate bring forth new issue
I think beta 4 broke my custom control, within the control I have an update function that updates content to a bunch of AW.HTML.SPAN elements. Update code is as follows
[CODE]
obj.update = function (theInfo)
{
for (var d in theInfo)
{
eval('myobj = this.getTemplate("'+escape(d)+'")');
with(myobj) { setContent("html",theInfo[d]); }
}
}
[/CODE]
I see that getTemplate returns a clone now, so myobj differs from the original. But how do I get the new template (clone) to replace the existing one. Prior to beta 4 it worked perfectly, but I know it's the clone that is messing it up. Anyone have any ideas?
[CODE]
obj.update = function (theInfo)
{
for (var d in theInfo)
{
eval('myobj = this.getTemplate("'+escape(d)+'")');
with(myobj) { setContent("html",theInfo[d]); }
}
}
[/CODE]
I see that getTemplate returns a clone now, so myobj differs from the original. But how do I get the new template (clone) to replace the existing one. Prior to beta 4 it worked perfectly, but I know it's the clone that is messing it up. Anyone have any ideas?
Tony
January 19,