PDA

View Full Version : How to create popup windows using Extjs



aomadevelopers
5 May 2010, 1:45 AM
Hi,

I want to use popup windows to show flash player in my application. This popup should be dragable outside the main window where application is running.Can anyone help me on how to create popup windows in Extjs? Does Extjs have any API classes to create popup windows? Is there any user extensions(ux) available for popup windows?

Thanks

tryanDLS
5 May 2010, 6:51 AM
Look at the examples in your download folder a number illustrate how to build popups - start with examples\windows

With regard to flash, I suggest searching here as there are a number of threads addressing the challenges involved in using flash. You many need to also investigate the ManagedIframe extension.

chandan.behura
7 Aug 2012, 10:08 PM
Hi,
on click of a button a window is coming. but the problem is after closing that window when i am clicking that button for 2nd time it is not coming again.


bellow is my code.

<script type="text/javascript">
Ext.onReady(start);
</script>




Ext.define('App.model.Window',{
extend:'Ext.window.Window',
title:'Title Here',
height:100,
width:100,
draggable:false
});
function start() {
var w1 = Ext.create('App.model.Window',{
items:[
{
xtype : 'button',
text:'Open',
handler : function(){
w2.showAt(400,200);
w1.disable();
}
}
],

});
w1.setTitle('Window 1');
w1.show();
var w2 = Ext.create('App.model.Window' ,{
listeners:
{
close:function(){
//w2.hide();
w1.enable();
w2.enable();
}
}
});
w2.setTitle('Window 2');
}

sword-it
7 Aug 2012, 10:56 PM
@ chandan
plz do not post multiple posts of same question..
also your question is already answered at:-
http://www.sencha.com/forum/showthread.php?235912-window-issue&p=868167#post868167