Help: Catching a bad url error when loading an XMLobject?

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Help: Catching a bad url error when loading an XMLobject?

    When I call the following method on an XML object using a bad url:

    request_xml.sendAndLoad(myurl, reply_xml);

    I get the following error on the console while the application/movie plays on:

    Error opening URL "http://myhost/myurl.asp"

    Is there a way to catch this error? I have tried try-catch but it did not
    work. the onLoad method on the XML object is not called as well.

    Some have suggested that I make sure the url is correct. This is not an option
    since the url is entered by the user and, of course, it can always be
    wrong/malformed.

    Any help is greatly appreciated.

    Chris

    ChrisRauh Guest

  2. Similar Questions and Discussions

    1. 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...
    2. Cold Fusion 404 Error Catching
      Running Apache with CFMX on windows. domain.com/missing.html is caught by the apache errordocument fine. domain.com/missing.cfm outputs a cold...
    3. #25842 [Opn->Bgs]: Error Reporting not catching parse errors
      ID: 25842 Updated by: sniper@php.net Reported By: corrupted_wise at yahoo dot com -Status: Open +Status: ...
    4. #25842 [NEW]: Error Reporting not catching parse errors
      From: corrupted_wise at yahoo dot com Operating system: Win XP SP1 PHP version: 4.3.4RC1 PHP Bug Type: Output Control Bug...
    5. Catching Apache error with a Perl script
      Hi y'all, I'm handling Apache errors through seperate shtml files. That surely looks better than the standard error pages by the browser etc. I...
  3. #2

    Default Re: Help: Catching a bad url error when loading an XMLobject?

    I just realized that the onLoad method is called with the success parameter as
    false. This should work but I still wonder why an exception is not raised so
    that I could pick it up on the calling sequence?

    ChrisRauh Guest

Posting Permissions

  • You may not post new threads
  • You may 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