PDA

View Full Version : [CLOSED] Fail to load frame



RCN
Oct 13, 2014, 1: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">
<Listeners>
<Load Handler="alert('LOAD')" />
<Exception Handler="alert('EXCEPTION')" />
</Listeners>
</Loader>
</ext:Panel>


Any ideas about how to overcome this issue?

Thanks in advance

Daniil
Oct 13, 2014, 4: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.

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