May 08, 2013, 2:26 PM
[CLOSED] Access parent panel attribute from iframe
Hi,
I am dynamically creating a panel and loading another aspx into it's content as iFrame.
Sth. like this:
How can I access custom config of an iFrame content's parent panel? Is it possible at all?
Thanks.
I am dynamically creating a panel and loading another aspx into it's content as iFrame.
Sth. like this:
MyPanel = new Ext.Net.Panel();
MyPanel.ID = "MyPanel";
MyPanel.CustomConfig.Add(new ConfigItem { Name = "refreshMe", Mode = ParameterMode.Raw, Value = "true", Encode = false });
MyPanel.Loader = new ComponentLoader
{
Url = "/MyChild.aspx",
Mode = LoadMode.Frame,
LoadMask =
{
ShowMask = true,
Msg = "Loading..."
}
};
I want to access MyPanel.refreshMe custom config from the iFrame aspx page. For this, I met this threat and tried using parent.window call. When I get MyPanel like this : "parent.window.MyPanel" it is not the Ext.Panel object and I have no access to MyPanel.refreshMe.How can I access custom config of an iFrame content's parent panel? Is it possible at all?
Thanks.
Last edited by Daniil; May 08, 2013 at 3:20 PM.
Reason: [CLOSED]