Professional Web Applications Themes

Help: Catching a "Error opening URL" error fromXML.sendAndLoad - Macromedia Flash Data Integration

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...

  1. #1

    Default Help: Catching a "Error opening URL" error fromXML.sendAndLoad

    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

    ChrisRauh Guest

  2. #2

    Default Re: Catching a "Error opening URL" error from XML.sendAndLoad

    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" <webforumsusermacromedia.com> schrieb im Newsbeitrag
    news:dcgdem$k18$1forums.macromedia.com...
    > 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 Guest

Similar Threads

  1. "The filename or extension is too long" Error when opening Acrobat 6.0
    By Ray_Quinn@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 4
    Last Post: January 24th, 02:24 PM
  2. Help! Can not save anything in Illustrator format - Error message "unknown error has occured"
    By Laura_Hernandez@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 7
    Last Post: April 19th, 04:30 AM
  3. Error "creating file: 1008:5, -5000 Access Denied Error"
    By tcervo in forum Macromedia Flash Player
    Replies: 9
    Last Post: May 3rd, 11:51 PM
  4. "There was an error opening this doent. This file cannot be found."
    By Michael_Dolfan@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: May 20th, 02:33 PM
  5. #12029 [Com]: "--with-apxs" can cause the error "MySQL: Unable to save result set in"
    By sietzepost at streetwisedd dot nl in forum PHP Development
    Replies: 1
    Last Post: October 3rd, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139