View Full Version : [CLOSED] Fail to load frame

Oct 13, 2014, 12:57 PM
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">
<Load Handler="alert('LOAD')" />
<Exception Handler="alert('EXCEPTION')" />

Any ideas about how to overcome this issue?

Thanks in advance

Oct 13, 2014, 3:08 PM
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.

Oct 13, 2014, 3:59 PM
Thank you Daniil. Please mark this thread as closed.