PDA

View Full Version : how to close parent window from html button inside of iframe ?



vidi meylan
25 Feb 2011, 12:57 AM
hi all,

im really new in extjs.. and now i face problem with iframe.
here's the situation :

i use pop up window to get the input.
i prefer to use iframe inside this window, because in the next process it will geting complicated with
alot off group and looping.


24859


can i create an button inside of iframe that can close the pop up window?

and here's the code when i generate the pop up window..


var pop = new Ext.Window({
id: 'pop-panel',
title: ' Longitude :'+lon+', Latitude :'+lat,
width: 700,
height:350,
minWidth: 300,
minHeight: 150,
layout: 'fit',
activeItem: 0,
plain:true,
bodyStyle:'padding:5px;z-index:20001;',
buttonAlign:'center',
closeAction:'hide',
items:[
{
id:'fit-panel',
activeItem: 0,
xtype: 'iframepanel',
loadMask: 'loading..',
defaultSrc : BASE_URL+'webmap/get_target_site/index/'+lon+'/'+lat

}
]

});
pop.show();note : i'm sorry if my english still bad..





[SOLVED from this thread http://www.sencha.com/forum/showthread.php?80488-Solved-Closing-Popup-Ext.Window-from-within-IFRAME-html-button ]

thanks.