You can certainly put an iframe in the infowindow and point its src
attribute to your external HTML page containing the content you want to
appear inside the infowindow. That can be a good solution if you have no
control over that external page.
However, it sounds like you *do* have control over these pages you want to
load into your infowindows, is that right?
In that case, a better solution is to strip those pages down so they are
HTML fragments instead of complete HTML documents.
For example, instead of loading this HTML file into an iframe:
<!doctype html>
<html>
<head>
<title>HTML Document</title>
</head>
<body>
<div>
Hello world!
</div>
</body>
</html>
You would remove everything except the content of the body element, so the
entire HTML file would be just this:
<div>
Hello world!
</div>
If your HTML file looks like that, then you can download it and insert
directly into the infowindow without need for an iframe, just as you could
insert any HTML string from JavaScript.
-Mike
On Fri, May 14, 2010 at 12:55 AM, Brice <[email protected]> wrote:
>
>
> On 13 mai, 19:49, Rossko <[email protected]> wrote:
> > > When I try to maximize the infoWindow, the html page appears briefly
> > > and then the main page disappears and my web browser try to load but
> > > nothing happens :-/
> >
> > The browser is probably crashing because you are inserting a complete
> > html page into an existing html page.
> > An infowindow appends content to the existing page, you're only
> > supposed to put snippets in there.
> > Maybe you should look into iframes.
> >
>
> Hi,
>
> I've tried to remove the little Google Maps in my second level html
> pages but the browser, if it loads normally the content into the
> maxContent infoWindow, try then to load "something" but fails...
>
> What you suggest Rossko is that I encapsulate my content of the second
> level html pages into iframes ? Is that it ?
>
> Thanks again.
>
> --
> 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>
--
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.