Jürgen wrote:
> I am using the JSON-method for getting data from a different domain
> than where the map is displayed. That is working just fine.
>
> My question is how to handle the case, when my page fails to get the
> data from the other server. Everything that is not response code 200.
> It may be an internal server error or the server being down
> completely.
>
> Is there something similiar to GDownloadUrl (same domain only!!),
> where the callback function has a parameter responseCode that I can
> check for?
>
> Does anybody have any experience with that?
>
> A very simple test page can be found at
> http://www.einberg-volleyball.de/maps/test/json.html

Internet Explorer supports the "onreadystatechange" event for SCRIPT
elements.  Firefox supports the "onload" & "onerror" events for SCRIPT
elements.  If you have multiple asynchronous scripts in progress at
the same time, you can assign an "id" and/or dig the "src" property
out of the SCRIPT element.

The event models differ.  For Internet Explorer,  check
"window.event.srcElement.src".  For Firefox, check
"whatever.currentTarget.src" where "whatever" is the argument in the
function call.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to