Wasn't it Nicolas who wrote:
>
>Hi Papa Bear!
>
>I am trying to do something similar to Adam but I want to do it within
>the infowindow. I realized that you are open a new browser-window
>(target='blank') but want link inside the infowindow thus the user
>can browse other pages within the infowindow with no need to refresh,
>nor open a new window, nor loose the current infowindow. Is it clear
>what I want to achieve, or I am explain myself poorly?
>
>Please any help will be wonderful.
If the target page is in the same domain, you can fetch the data with
GDownloadUrl and drop it into a div that you've prepared for it inside
the info window
GDownloadUrl(url,function(data) {
document.getElementById("iwdiv").innerHTML=data;
});
If the target page is elsewhere you can do the same sort of thing, but
for security reasons you have to fetch the data with a server side proxy
rather than just being able to GDownloadUrl() it. Also, all the relative
addressing with be wrong. If the page uses relative URLs for things like
images, the browser will look for the images on your domain rather than
on the domain of the target page.
The bottom like is that an infowindow isn't a browser window, so it
can't do everything a browser window can do.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---