The problem IS that reverse geocoding of country and subdivision doesn't come back in the callback function in case I call it with lat and lng from the UK or, if you want in case of an error.
This was the answer of Marc:
You are right this was a bug in the web service. It ignored the callback parameter in case of an exception. This is fixed now.
It still doesn't work? I put an alert in the callbak but I get only a message with lat and lng from outside the UK.
I took away the two statements with getelemenetbyid etc. I put an echo in the test to show you the request. Nothing wrong with that. And still no calback???
I did another test today. I picked up the echo and put it in the browser. Ofcourse without the calback. When I do this with the request in the UK I get an page not found 404 error. Maybe this is of any help. I hope so.
I did the test now with the link I send you earlier. When I now put the pointer in the UK it works well for me. It comes back in the callback and set the pointer. When you set the mouse ont the pointer-icon in the UK then then you get the tooltip with country and subdivision undefined. And that is correct because the status isn't 200. If I want that changed I have to test the status in the way you aswered earlier.
This is OK with me.
In the case of a status other than 200 I always can make a search for the countrycode, maybe I do that.
Thanks so far. I hope we helped each other to make things better.