[Laszlo-user] catching invalid resources in SOLO mode
Henry Minsky
henry.minsky at gmail.com
Fri Apr 18 09:45:28 PDT 2008
aside from timeouts, I don't know if there is any way in SOLO mode to be
informed of an error in the transport/loading!There might be some Flash hack
to get some sort of status
out of loadMovie, but I don't recall seeing any way to do that.
On Fri, Apr 18, 2008 at 9:20 PM, Elliot Winard <enw at laszlosystems.com>
wrote:
> How can/should I catch resource loading errors at runtime?
>
> The attached file shows that the onerror fires fine if the app is running
> in proxied mode. No luck in SOLO.
> The image resources that are loaded come from a servlet, so we have
> complete control over the HTTP responses. SWFs don't have access to the
> HTTP headers so I can't catch that the client gets a 404, even though I can
> see it when I sniff the wire for HTTP.
>
> Thanks,
> -e
>
> <canvas debug="true" proxied="false">
> <view id="tt">
> <handler name="onerror">
> Debug.warn("onerror");
> OUT.setText("onerror");
> </handler>
> </view>
> <button text="trigger resource error"
> onclick="tt.setResource('http:foo.html')" />
> <text width="100%" id="OUT" />
> <simplelayout/>
> </canvas>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080418/17d190be/attachment-0001.html
More information about the Laszlo-user
mailing list