Hi,
I open a popup from my page. The popup has a form which has a textfield.
On submit, I want the popup to close and the text to be available in my opener page.
How can I do this?
The following function is called to open the popup..
Code:
function showPopup()
{
 
var replyForm = new Ext.FormPanel({
id: 'replyForm',
labelAlign: 'left',
labelWidth: 60,
bodyStyle: 'padding: 10px; align: left',
width: 320,
items:
[{
layout: 'form',
border: false,
items: [
{
  xtype: 'textfield', name: 'name', fieldLabel: 'Merged Name',
  maxLength: 255, allowBlank: false
}
],
buttons:
[{
id: 'btnSubmit',
text: 'Submit',
handler: submit
}]
}]
});
 
function submit()
{
name = Ext.getCmp('replyForm').getForm().findField('name');
//How to send this name to opener??
replyWindow.close();
}
 
}