PDA

View Full Version : Render more than one object into the dialog.



geovane.oliveira
17 Aug 2007, 6:36 AM
Hi guys,

I am working on a login dialog, but after render the fields and buttons, i need to add some additional information about security. This information are texts, links, e-mail address, so I need to use html code to format the code.

What I am trying to do is something like this:

MyForm.render(MyDialog.body);

MyTemplate.ovewrite(MyDialog.body);

But i want the both contents there(on the dialog.body). I could neither add my information on the form, not my form on the template.
Any suggestions on how I could handle this?


Tks.

evant
17 Aug 2007, 6:39 AM
Why not create 2 containers?



var f = Ext.DomHelper.append(dialog.body, {tag: 'div' id: 'formHolder'}, true);
var t = Ext.DomHelper.append(dialog.body, {tag: 'div', id: 'tplHolder'}, true);

myForm.render(f);
myTmp.overwrite(t);

geovane.oliveira
17 Aug 2007, 7:26 AM
Tks,

I am a beginner on that :)


It worked great.