> MyCallback :
http://tfalcon.nl/google/test2.html
function MyCallback(request, status) {
var html = request.responseText;
... }
'html' will be available after the data has been returned via AJAX
(which may be some time after you requested it) but will become
unavailable again after MyCallback() completes, because it was created
in local scope.
If you want to use data from an asynchronous request, you have to USE
it in the callback.
For some reason you are attempting to download all the infowindow
content at the same time as the marker locations, when first
populating the map.
If you are going to do that, you might as well put the infowindow
content in the same data package as the marker locations.
If, instead, you want to load the infowindow content only when it is
needed, you could put the downloadUrl() request into a marker click
listener, and have the callback for that open the infowindow with the
content.