PDA

View Full Version : BasicForm to submit in new window/iframe



JTango
15 Nov 2010, 3:56 PM
Hi,

I'm new to ExtJS and I have been using the Ext.FormPanel and BasicForm for that matter. I'm trying to submit the form to a new window, just like having an HTML form with a target attribute: <form target="_blank" ... >.

Is this possible with ExtJS? I have done some search on this forum but cannot find a related question/thread.

Thanks.

laurentParis
16 Nov 2010, 1:43 AM
look generated code by extjs, you have always form balise... so you can add to this balise "form" your target as you need !

JTango
16 Nov 2010, 7:22 AM
Thanks laurentParis. Following your advice (sort of), I found what I was looking for:


Ext.getDom(form.getEl()).target = "_blank"; // where form is the BasicForm object
form.submit();