The Javascript that generates the HTML is here:

function get_html(name, url, address, blurb, group, point) {
        if (blurb) { blurb = blurb + "<br />"; }
        return "<div class=\"window\"><img src=\"../img/maps/" + group + ".png
\" /><strong><a href=\"" + url + "\" class=\"blurb\">" + name + "</a></
strong><br />" + address + "<br /><span class=\"periph\">" + blurb +
"<br /><a href=\"" + url + "\">more info</a> | <a href=\"http://
maps.google.com/maps?daddr="+escape(address+" ("+name+")")
+"\">directions</a> | <a href=\"javascript:zoomIn(new
google.maps.LatLng("+point.toUrlValue()+"))\">zoom in</a> | <a href=
\"javascript:zoomOut()\">zoom out</a></span></div>";
}

After looking into it further, it seems like issue is related to the
CSS styling for the div containing the InfoWindow HTML. The CSS was:
.window { max-width:300px;height:120px;margin:0;padding:
0;overflow:auto; }
but after making it height:120px then IE6 was able to recognize the
bottom links normally.

So for some reason the InfoWindow fits the links into the window but
IE6 thinks the InfoWindow is smaller than it is. When bringing the
mouse over the bottom links, the cursor changes from the arrow to the
hand, but again a click on the link simply closes the InfoWindow.
However, a click in the white space around or below the bottom links
keeps the InfoWindow open, as it should.

For example, the bottom links don't work here:
http://www.farmfresh.org/food/farmersmarkets.php?open=1&show=1&zip=06250
but they do work here, where the text doesn't push them down as far:
http://www.farmfresh.org/food/farmersmarkets.php?open=1&show=1&zip=02909


On Feb 7, 11:28 pm, pete <[email protected]> wrote:
> I tried to have a quick look, however your application is quite
> integrated, is it possible to isolate your example onto a seperate
> page
>
> The problem may be in your syntax (of your Gmap3.js file) where you
> are constructing the contentString.
> Try simplify this string, and do not use "#" for the href element. You
> should pass javascript:void(0), or better yet your function here...
>
> I can however say with confidence, that JavaScript generated HTML will
> correctly work inside the infoWindow in IE6+
>
> On Feb 7, 5:22 am, Farm Fresh <[email protected]> wrote:
>
> > I saw this "holes" problem described elsewhere but no resolution:
>
> > Map example:http://www.farmfresh.org/food/farmersmarkets.php?zip=01608
>
> > HTML for the links in an infowindow is generated by Javascript. IE6
> > and IE7 treat a click on the links on the bottom as a click out of the
> > infowindow onto the map. So a click there simply closes the
> > infowindow. FF, Safari, Chrome, IE8 all work as desired.
>
> > Currently I set it so the links don't display at all in IE6, but you
> > can still see the bug in IE7.
>
> > Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to