Jan 31, 2013, 4:13 PM
Create client-side window with auto loader
Hi,
I'm trying to create a window on client-side, that loads a html page as soon as it is shown (by pressing a button). The problem is i can't see the html page inside the window although it seems to be loaded.
The aspx code is as follows:
Can you please help?
Thanks.
I'm trying to create a window on client-side, that loads a html page as soon as it is shown (by pressing a button). The problem is i can't see the html page inside the window although it seems to be loaded.
The aspx code is as follows:
...
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Button runat="server" Text="Open" Icon="Application">
<Listeners>
<Click Handler="showWindow();" />
</Listeners>
</ext:Button>
</form>
</body>
....
The javascript function is described next:function showWindow() {
var win1 = new Ext.Window({
id: 'test1',
title: 'Test Window',
closeAction: 'destroy',
width: 500,
draggable: true,
height: 530,
closable: true,
modal: true,
plain: true,
loader: {
url: 'Developing.htm',
loadMask: false,
autoLoad: true,
renderer: 'html',
success: function (el, response, opts) {
alert('OK');
},
failure: function (el, response, opts) {
alert('error');
}
},
buttons: [
{
text: 'Close',
handler: function () {
win1.close();
}
}]
});
win1.show();
}
The 'Developing.htm' page just has one big image.Can you please help?
Thanks.