[CLOSED] Showing Ext Windows

  1. #1

    [CLOSED] Showing Ext Windows

    Hi,

    I want to load Ext windows from javascript.
    It displays quickly before, but after update from svn, I got many error like:
    Uncaught TypeError: Object [object Object] has no method 'addCls'
    Uncaught TypeError: Object [object Object] has no method 'findParent'
    ...



    /Test/Test1.cshtml:

    @{
        Layout = null;
    }
    
    <!DOCTYPE html>
    
    <html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>Test1</title>
        <script>
            showWindows = function () {
                var win = new Ext.Window({
                    width: 210,
                    height: 185,
                    modal: 'true',
                    autoLoad: {
                        url: '/Test/Test2',
                        scripts: true
                    }
                });
                win.show();
            }
    
        </script>
    </head>
    <body>
        <div>
            @(Html.X().ResourceManager())
            @(Html.X().Button().Text("Click Me").Listeners(l=>l.Click.Handler="showWindows();"))
        </div>
    </body>
    </html>
    /Test/Test2.cshtml
    @{
        Layout = null;
    }
    
    @Html.X().ResourceManager()
    @(Html.X().FormPanel().ID("myPanel").MinWidth(200)
    .Items(i =>
               {
    
                   i.Add(Html.X().Button().Text("Test1")
                             .TextAlign(ButtonTextAlign.Center)
                             .Width(150).Margin(5));
                   i.Add(Html.X().Button().Text("Test1")
                             .TextAlign(ButtonTextAlign.Center)
                             .Width(150).Margin(5));
               }))
    Last edited by Daniil; Sep 25, 2012 at 7:01 AM. Reason: [CLOSED]
  2. #2
    What is controller action code?
  3. #3
    Quote Originally Posted by Vladimir View Post
    What is controller action code?
    Hi, Here it is:

    public ActionResult Test1()
            {
                return View();
            }
            public ActionResult Test2()
            {
                return View();
            }
  4. #4
    Hi,

    According the controller actions, you should set "frame" renderer.
    autoLoad: {
        url: "/Test/Test2",
        renderer : "frame"
    }

Similar Threads

  1. [CLOSED] IIS7 Windows 7 x Windows 2008
    By majunior in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Nov 08, 2011, 6:56 PM
  2. [CLOSED] [1.0] showing windows in MVC
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 16, 2009, 12:26 PM
  3. [CLOSED] Desktop BUG: Modal windows can be minimized and you can interact with the other windows
    By juanpablo.belli@huddle.com.ar in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 31, 2009, 2:49 PM
  4. Replies: 1
    Last Post: Mar 17, 2009, 1:17 AM
  5. Replies: 1
    Last Post: Mar 29, 2008, 7:04 PM

Posting Permissions