[CLOSED] Fail to load frame

  1. #1

    [CLOSED] Fail to load frame

    On the following example i would like to detect any failure on the load of frame such invalid URL, unavailable webpage, etc.

    Unfortunately, no matter whether the page is loaded, the response parameter (Load Listener) is always null, so i was not able to check the http status.

    <ext:Panel runat="server" Width="500" Height="500">
        <Loader Url="http://www.ext123131.net" Mode="Frame" ShowWarningOnFailure="true" runat="server">
            <Listeners>
                <Load Handler="alert('LOAD')" />
                <Exception Handler="alert('EXCEPTION')" />
            </Listeners>
        </Loader>
    </ext:Panel>
    Any ideas about how to overcome this issue?

    Thanks in advance
    Last edited by Daniil; Oct 13, 2014 at 4:20 PM. Reason: [CLOSED]
  2. #2
    Hi Raphael,

    It is how the Load event is fired in the case with Mode="Frame".
    this.fireEvent("load", this, null, options);
    "null" is the response parameter.

    We just create an iframe. Everything rest is done by browser. It requests the page and operates the response without any access to that.

    In other words, a Load listener is just a wrapper of an iframe's onload event.
  3. #3
    Thank you Daniil. Please mark this thread as closed.

Similar Threads

  1. Replies: 1
    Last Post: Feb 18, 2014, 8:07 PM
  2. Load external web page : x-frame options
    By Yannis in forum 1.x Help
    Replies: 5
    Last Post: Feb 23, 2012, 3:32 AM
  3. [CLOSED] can't load XRegExp twice in the same frame
    By krzak in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2011, 4:41 PM
  4. ScriptManager in 2.0 app Causes CSS to fail
    By Tbaseflug in forum Bugs
    Replies: 0
    Last Post: Apr 22, 2009, 1:52 PM
  5. [CLOSED] validation fail
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 12, 2009, 5:45 AM

Posting Permissions