OK, looks like I got #1 solved.  I guess in the old API v2, theres a
method called openInfoWindowHtml which does the same thing as the
InfoWindow.  Anyway, I saw a post from another forum about the same
issue about the InfoWindow opening and closing (thus creating that
flicking effect) when loading info from an AJAX call. The solution is
to do the following:

A) Initialize the InfoWindow with the content of some DIV container
with an ID (eg: "<div id="infoWindowContent" ...>...</div>")

B) Wen setting the event for click on the marker, the anonymous
function or whatever function gets called to set the InfoWindow's
content, do this using jQuery:

var infoContentString = "some string you get back from AJAX or
whatever";
$("#infoWindowContent").html(infoContentString);

C) Make sure you include the jQuery script within your HTML header or
you're gonna get a nasty Javascript error.

Still need to know why the closeclick event gets called like 5 times
during closing of the InfoWindow.

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