[CLOSED] V2.0 DeskTop window

  1. #1

    [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:

    <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 OK

    I 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,
    Click image for larger version. 

Name:	Immagine1.jpg 
Views:	162 
Size:	33.2 KB 
ID:	3737

    but the module DesktopModule2 open the window and
    the method Page_Load from the page Utenti.aspx is execute, but the page not show.

    Click image for larger version. 

Name:	Immagine.jpg 
Views:	159 
Size:	15.5 KB 
ID:	3738

    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]
  2. #2
    Hi, i solved, the problem is the Javascrip, i correct the session loader:

    loader:
                            {
                                url: pagina,
                                loadmode: 'frame',                            
                                renderer: 'frame'                            
                            }
    this work OK

    Tnks

    Aurelio
    Last edited by Daniil; Jan 20, 2012 at 12:31 PM. Reason: Please use [CODE] tags
  3. #3
    Hi,

    This should be enough:
    renderer : 'frame'
    You can remove:
    loadmode : 'frame'
  4. #4
    Hi, Daniel

    Yes tnks, renderer is enough.

    Aurelio

Similar Threads

  1. Replies: 2
    Last Post: Jul 26, 2012, 2:12 AM
  2. [CLOSED] Minimize window created in another desktop window
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 03, 2011, 1:46 PM
  3. Ext.Net Desktop window.
    By Ashish in forum 1.x Help
    Replies: 2
    Last Post: Aug 24, 2011, 6:24 AM
  4. Refreshing desktop control from desktop window
    By AnilVelamuri in forum 1.x Help
    Replies: 0
    Last Post: May 26, 2010, 7:53 AM
  5. Replies: 3
    Last Post: Feb 03, 2009, 5:57 PM

Posting Permissions