Groups | Blog | Home
all groups > flash data integration > july 2005 >

flash data integration : Help: Catching a "Error opening URL" error from XML.sendAndLoad


ChrisRauh
7/30/2005 12:00:00 AM
If you pass an invalid url the output window prints an "Error Opening URL
Error" error.
How can I catch/identify this error and handle it?
When this error happens the XML object does not call my XML.onLoad(false) so I
figure I have to look somewhere before that in the call sequence.

Any help greatly appreciatted,

Christian
perry
8/1/2005 8:22:56 AM
use onData instead of onLoad:

x=new XML();
x.load("my.xml");
x.onData=function(s){
if(s==undefined){
trace("error loading xml file");
} else{
trace(s);
}
}


"ChrisRauh" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:dcgdem$k18$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button