Re: externalResourcesRequired and SVGLoad

On Thursday, October 23, 2003, at 10:48  AM, Denis Bohm wrote:
> Is there any way to detect an error (external resource not found)?

Continuing the quote on externalResourcesRequired="true":
"...If a timeout event occurs on a required resource, then the document 
goes into an error state (see Error processing [2] ). The document 
remains in an error state until all required resources become 
available."[1]

You want to trap the error using the SVGError event [3] which is part 
of the Document Events Attribute module, DocumentEvents.attrib, and 
hence (I believe) applies only to the SVGDocument. I suspect the error 
will bubble on up if the external resource fails to load, but I'm just 
guessing.




[1] http://www.w3.org/TR/SVG11/struct.html#ExternalResourcesRequired
[2] http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing
[3] http://www.w3.org/TR/SVG11/script.html#OnErrorEventAttribute
--
Gavin Kistner @ Refinery, Inc.
gavin@refinery.com
work: +1.303.444.1777

Received on Thursday, 23 October 2003 13:11:46 UTC