<input type="button" id="show-win" value="Show Window"/>
<script type="text/javascript">
Ext.onReady(function(){
var button = Ext.get('show-win');
button.on('click', function(){ // ajaxContent for the center var ajaxContent = new Ext.Panel({ region: 'center', margins:'0 0 0 0', autoScroll:true, contentEl:'hidden-irr-region' });
var win = new Ext.Window({ title: 'IRR report in an ExtJS window', closable:true, closeAction:'hide', width:700, height:350, border:false, plain:true, layout: 'border', items: [ajaxContent], buttons: [{ text:'Submit', disabled:true },{ text: 'Close', handler: function(){ win.hide(); } }] });
win.show(this); }); });
</script>
|