On 14 mai, 10:10, Michael Geary <[email protected]> wrote:
> 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
>

Thanks for your response but if it now "works" it's not perfect as you
can see there : 
http://boucard.brice.perso.neuf.fr/geoculture/tests/test/geoloc.html
after a click on the red marker.
The maxContent infoWindow loads this page :
http://boucard.brice.perso.neuf.fr/geoculture/tests/test/nadaud.html
But after having removed all the html elements except those in the
body element, it doesn't load the little map and doesn't use the css
style, yet defined into the main google map page.

What would you suggest to solve that issue ?

Thanks a lot.

-- 
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.

Reply via email to