Jan 20, 2012, 10:34 AM
[CLOSED] V2.0 DeskTop window
Hi, I have a problem when I open a window from a url in javascript in versione 2.0, version 1.2 is ok:
Code V1.2:
I have modified the javascript for adatper to version 2.0, the window is open OK but the page utenti.aspx is not show.
but the module DesktopModule2 open the window and
the method Page_Load from the page Utenti.aspx is execute, but the page not show.
If change 'Utenti.aspx' with 'http://www.ext.net' work ok the page is show into the window
Tnks
Aurelio
Code V1.2:
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<div>
<ext:Desktop ID="Desktop1" runat="server" Wallpaper="Images/Misc/desk.jpg">
<Modules>
<ext:DesktopModule ModuleID="DesktopModule1" >
<Launcher ID="Launcher1" runat="server" Text="Rifiuti" Icon="Door"
OnClientClick="openUtenti(Desktop1);" />
</ext:DesktopModule>
</Modules>
</ext:Desktop>
</div>
</form>
<script type="text/javascript">
var show = function (app, windowId, pagina, titolo, icona, width, height) {
var desktop = app.getDesktop(),
manager = desktop.getManager();
win = manager.get(windowId);
if (!win) {
var cfg = {
id: windowId,
header: true,
runat: 'server',
title: titolo + 'Utente: ' + '<%=Session["Utente"].ToString()%>',
iconCls: icona,
width: width,
height: height,
closeAction: 'close',
minimizable: true,
maximizable: true,
initCenter: true,
border: true,
autoLoad: {
showMask: true,
url: pagina,
mode: 'iframe',
maskMsg: 'Caricamento...'
}
};
win = desktop.createWindow(cfg);
}
win.show();
};
var openUtenti = function (app) {
show(app, 'winUtenti', 'utenti.aspx', 'Arichivio utenti', 'icon-world', 900, 600);
};
</script>
</body>
The window is open and the page utenti.aspx is show OKI have modified the javascript for adatper to version 2.0, the window is open OK but the page utenti.aspx is not show.
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:Desktop ID="DesktopHome" runat="server">
<Modules>
<ext:DesktopModule ModuleID="DesktopModule1" >
<Shortcut Name="Notepad" IconCls="x-notepad-shortcut" SortIndex="2" />
<Launcher Text="Notepad" Icon="ApplicationForm" />
<Window>
<ext:Window ID="Window1" runat="server"
Title="Notepad"
Width="600"
Height="400"
Icon="ApplicationForm"
AnimCollapse="false"
Border="false"
HideMode="Offsets"
Layout="FitLayout"
CloseAction="Destroy">
<Loader runat="server" Url="Utenti.aspx" Mode="Frame"></Loader>
</ext:Window>
</Window>
</ext:DesktopModule>
<ext:DesktopModule ModuleID="DesktopModule2" >
<Launcher Text="Utenti" Icon="ApplicationForm" OnClientClick="openUtenti(#{DesktopHome})" />
</ext:DesktopModule>
</Modules>
</ext:Desktop>
</form>
<script type="text/javascript">
var show = function (app, windowId, pagina, titolo, icona, width, height) {
var desktop = app.getDesktop(),
win = desktop.windows.get(windowId);
if (!win) {
var cfg = {
id: windowId,
runat: 'server',
title: titolo,
iconCls: icona,
x: 20,
y: 20,
width: width,
height: height,
closeAction: 'close',
minimizable: true,
maximizable: true,
border: true,
loader:
{
url: pagina,
mode: 'Frame'
}
};
win = desktop.createWindow(cfg);
}
win.show();
};
var openUtenti = function (app) {
show(app, 'winUtenti', 'Utenti.aspx', 'Arichivio utenti', 'icon-world', 900, 600);
};
</script>
</body>
The module DesktopModule1 work OK,but the module DesktopModule2 open the window and
the method Page_Load from the page Utenti.aspx is execute, but the page not show.
If change 'Utenti.aspx' with 'http://www.ext.net' work ok the page is show into the window
Tnks
Aurelio
Last edited by Daniil; Jan 20, 2012 at 12:36 PM.
Reason: [CLOSED]