dybomaha
09-15-2004, 01:22 PM
If I need to use setSource for a view, and there is an error, such as 404 not found, how can I catch the error to process it.
I am using:
<view id="image1" stretches="both">
<method name="onload">
image1.setSource(imageurl1);
</method>
<method name="onerror" args="error">
var imageurl1 = "http://tgoeke.digitizeyourbusiness.com:8080/lps-2.1.2/auction/clicktoplaceimage.png";
image1.setSource(imageurl1);
debug.write("Recovering from image error: " + error);
</method>
</view>
The onload function does not seem to work either.
Is there some place where I can find more examples and documentation for these items?
Thanks,
DYBOMAHA
I am using:
<view id="image1" stretches="both">
<method name="onload">
image1.setSource(imageurl1);
</method>
<method name="onerror" args="error">
var imageurl1 = "http://tgoeke.digitizeyourbusiness.com:8080/lps-2.1.2/auction/clicktoplaceimage.png";
image1.setSource(imageurl1);
debug.write("Recovering from image error: " + error);
</method>
</view>
The onload function does not seem to work either.
Is there some place where I can find more examples and documentation for these items?
Thanks,
DYBOMAHA