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 = new GDirections();
GEvent.addListener(directs0,"load", function()
{
alert('l');
})
GEvent.addListener(directs0,"error", function()
{
alert('e');
})
try
{
directs0.load("from: 9231ht NL to: Ir. C.M. van der Slikkeleane 2
9041CH Berlikum NL")
}
catch(e)
{
alert('c');
}
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
-~----------~----~----~----~------~----~------~--~---