[FIXED] [2.3] 2.2 Panel reload with Loader.mode=Frame will reload first url

  1. #1

    [FIXED] [2.3] 2.2 Panel reload with Loader.mode=Frame will reload first url

    Hi,

    Run below code, then click tool next, panel will nav to ext.net home page, then click tool refresh, panel will not reload ext.net home page, reload method make panel nav to about:blank which I set in markup.

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server"></ext:ResourceManager>
        <ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
            <Items>
                <ext:Panel ID="Panel1" runat="server" Title="Ext.Net">
                    <Tools>
                        <ext:Tool Type="Next">
                            <Listeners>
                                <Click Handler="#{Panel1}.load('http://ext.net')"></Click>
                            </Listeners>
                        </ext:Tool>
                        <ext:Tool Type="Refresh">
                            <Listeners>
                                <Click Handler="#{Panel1}.reload()"></Click>
                            </Listeners>
                        </ext:Tool>
                    </Tools>
                    <Loader ID="Loader1" runat="server" Mode="Frame" Url="about:blank"></Loader>
                </ext:Panel>
            </Items>
        </ext:Viewport>
    </body>
    </html>
    Last edited by Daniil; Sep 04, 2013 at 3:44 AM. Reason: [FIXED] [2.3]
  2. #2
    Hi @devil,

    Someone expects it should be reloaded with the initial behavior. Though, I would also prefer another behavior as you expect.

    Anyway, I don't think we are going to change it. Moreover, there is a simple solution - save the URL in the loaded.
    #{Panel1}.getLoader().url = url;
    Then a reload call will take it into account.
  3. #3
    Thanks @Daniil,

    Someone expects it should be reloaded with the initial behavior
    I think this can use load(initial url) to reach it... or give load function a parameter to indicate reload to current or initial.

    Anyway, thanks for your solution.
  4. #4
    Quote Originally Posted by devil View Post
    I think this can use load(initial url) to reach it... or give load function a parameter to indicate reload to current or initial.
    Agreed. We will investigate what we can do here.
  5. #5
    Fixed in SVN
    The fix will be available in the next public release

Similar Threads

  1. [CLOSED] Reload window content when user loader dynamically
    By rthiney in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 28, 2013, 4:43 AM
  2. Replies: 4
    Last Post: Oct 03, 2012, 12:50 PM
  3. Grids reload in Merge mode
    By zeus in forum 1.x Help
    Replies: 0
    Last Post: Jul 05, 2012, 7:10 AM
  4. Replies: 5
    Last Post: May 18, 2012, 1:41 PM
  5. reload desktop window frame
    By krishna in forum 1.x Help
    Replies: 0
    Last Post: Mar 01, 2012, 11:51 AM

Tags for this Thread

Posting Permissions