Mar 13, 2012, 7:49 PM
[CLOSED] Call other window's method
Hi again.
I have a GridPanel showing some data in a page.
The grid is refreshed with a server Method (used in Store's OnRefreshData)
What I need is to call a refresh method from this opening window once the phone is added/edited/deleted, so the Phone list gets updated.
I don't know if it's better to call the server method or client method from the iframe window before it closes, and don't know how in both cases.
I saw IFrame communication sample, but I need communication between two windows, and can't get the opener just as I would do in regular Javascript.
Also may help server side method calling, but don't know hoy to get the opened window instance to call the method.
Thanks
Regards
Fernando
I have a GridPanel showing some data in a page.
The grid is refreshed with a server Method (used in Store's OnRefreshData)
Public Sub RefreshPhones(ByVal sender As Object, ByVal e As StoreRefreshDataEventArgs)
RefreshPhones() 'This method gets data and databinds without problem
End Sub
or with a JS method:function RefreshGrid()
{
Ext.getCmp("grdPhones").store.reload();
}
To add/edit/delete a phone, a new window opens (Iframe mode).What I need is to call a refresh method from this opening window once the phone is added/edited/deleted, so the Phone list gets updated.
I don't know if it's better to call the server method or client method from the iframe window before it closes, and don't know how in both cases.
I saw IFrame communication sample, but I need communication between two windows, and can't get the opener just as I would do in regular Javascript.
Also may help server side method calling, but don't know hoy to get the opened window instance to call the method.
Thanks
Regards
Fernando
Last edited by Daniil; Mar 14, 2012 at 4:04 PM.
Reason: [CLOSED]