On Nov 26, 2:47 am, Hans <[EMAIL PROTECTED]> wrote:
> Hello,
> I get an error loading gdirections with an address that cannot be
> found. I want to be able to handle the error.
> Javascript:
> directs0.load("from: 9231ht NL to: Ir. C.M. van der Slikkeleane 2
> 9041CH Berlikum NL")}

http://www.geocodezip.com/example_geo2.asp?addr1=9231ht%20NL&addr2=Ir.%20C.M.%20van%20der%20Slikkeleane%202%209041CH%20Berlikum%20NL&geocode=1&geocode=2

The Geocoder doesn't seem to understand "Ir."

http://www.geocodezip.com/example_geo2.asp?addr1=9231ht%20NL&addr2=Ingenieur%20C.M.%20van%20der%20Slikkeleane%202%209041CH%20Berlikum%20NL&geocode=1&geocode=2

When that happens the JSON response that comes back to the Geocode
request is bad:
_xdc_._2fnzwwdee && _xdc_._2fnzwwdee({
  "name": "Ir. C.M. van der Slikkeleane 2 9041CH Berlikum NL",
  "Status": {
    "code": 602,
    "request": "geocode"
  }
}

http://www.geocodezip.com/example_geo2.asp?APIV=2.136d&addr1=9231ht%20NL&addr2=Ir.%20C.M.%20van%20der%20Slikkeleane%202%209041CH%20Berlikum%20NL&geocode=1&geocode=2

in version 2.136d of the API.  v=2.x (v2.138f) and v=2 (2.137c) work
for me:
http://www.geocodezip.com/example_geo2.asp?APIV=x&addr1=9231ht%20NL&addr2=Ir.%20C.M.%20van%20der%20Slikkeleane%202%209041CH%20Berlikum%20NL&geocode=1&geocode=2

IE gets very confused when that happens.  FF seems to be OK with it.

  -- Larry


> }
>
> When running this, i get an IE popup that says: "Line 1 error:
> expected identifier string or number".
> And i do not see any of the alerts 'l' , 'e', or 'c'.
> So , i think the event listener for error does not execute, and also
> the catch-block is not executed. It looks like IE 6.0 just stops the
> script after the error-popup.
> How can i keep the script running, after .load of an address that
> cannot be found?
>
> Greetings,
> Hans
--~--~---------~--~----~------------~-------~--~----~
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