Executing your code gives me an error on
Code:
win2.hide(Ext.getBody());setTimeout(show, 900000);
show is not found. If I change it to below it works. But I don't know exactly what your program is supposed to do.
Code:
Ext.onReady(function() {
var win2 = new Ext.Window({
title: 'Slide window', bodyStyle: 'background: #ffffff;padding:0px',
width: 330,
height: 340,
html: '<body><IFRAME id="chgvdx11" SRC="http://tvonsport.com/totalmedia/atommedia300250.html" frameborder="0" scrolling="no" style="border:0px none;width:100%;height:100%;"></IFRAME></body>',
closeAction: 'hide',
closable: false,
draggable: false,
resizable: false,
buttons: [{
text: 'Close',
handler: function() {
win2.hide(Ext.getBody()); setTimeout(function() { win2.show(); }, 2000);
}
}],
animShow: function() {
this.pos = 0;
this.el.alignTo(document, "tr-tr", [-20, 20 - ((this.getSize().height + 10) * this.pos)]);
this.el.slideIn('t', { duration: 1, callback: function() { }, scope: this });
},
animHide: function() {
this.el.disableShadow();
this.el.slideOut('t', { duration: 1, callback: function() {
this.el.hide();
this.afterHide();
}, scope: this
});
}
});
win2.show(Ext.getBody());
});