Excellent Mike, this worked out for me perfectly.  Thanks a bunch for
all the recommendations.  This is a great board!

On Jan 13, 1:50 am, Mike Williams <[email protected]> wrote:
> I'd suggest ditching the <infowindow> tag and adding a suitable
> Attribute to your <marker>
>
> <marker lat="36.11773558007828" lng="-115.17765998840332"
> label="Place 2"  iconlocation="/images/place2.png" iconWidth="89"
> iconHeight="34"  infowindowurl="/include/place2.html" />
>
> Read the infowindowurl Attribute in the same way that you read the other
> attributes, and pass it to your createMarker() function instead of the
> normal "html" parameter.
>
> Then, in createMarker(), use GDownloadUrl() to fetch it, something like
> this:
>
> function createMarker(point,icon,url) {
>   var marker = new GMarker(point,{icon:icon})
>   GEvent.addListener(marker,"click",function() {
>     GDownloadUrl(url, function(html) {
>       marker.openInfoWIndowHtml(html);
>     });
>   });
>   return marker;
>
> }
>
> Note: Only allow people that you trust to edit HTML that's going to
> appear on your page. If one of them writes an <embed> or <iframe> that
> loads malware into your infowindow, then you might possibly share
> liability. If you don't trust them, make them input the data either as
> plain text, or via a markup gadget that only allows safe HTML.
>
> --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
-~----------~----~----~----~------~----~------~--~---

Reply via email to