Sorry for my english,
How can i close this window by Using Javascript Only, I use this Window for registring a Form and i want if the submition is ok to close automaticly the Popup Window.
Thanx for your help
Code:
function PopupPageFrame(titre,h,w,page)
{
var winPanel = Ext.getCmp('panelWindowId');
var winPanel = new Ext.Window(
{
title: '<div style="background-image:url(images/globe-model.png); background-repeat:no-repeat; background-position:3px 0px; margin-top:5px; padding-left:25px; height:16px;">'+titre+'</div>',
height:h,
width: w,
modal:true,
moveable:true,
draggable:true,
shadow:true,
maximizable: true,
resizable:true,
autoScroll: true,
collapsible:true,
iframe:true,
id:'panelWindowId',
scope:this,
plain:true,
autoScroll: true,
close :function(){
winPanel.hide();
window.location.reload();
},
animate:true,
html: '<iframe style="overflow:auto;width:100%;height:100%;" frameborder="0" src="'+ page +'"></iframe>',
//autoLoad: {url:''+ page +'', callback: this.initSearch, scope: this},
bodyStyle :{bgcolor : '#FFFFFF',background:'#FFFFFF'}
}
);
winPanel.show();
}