I have an input field in an infowindow and I want to set the focus to
it when the infowindow is opened.

I found the domready event, so I used that:

  var handler = google.maps.event.addListener(infowindow, "domready",
function() {
    google.maps.event.removeListener(handler);
    document.getElementById('input').focus();
  });


It is called properly, but in Firefox it's ineffective (doesn't set
the focus) and in IE it throws an error and complains about the input
element not being visible.

I need a callback which is called when the infowindow is actually
opened, because apparently domready is called too early, but I
couldn't find such an event.

Is there way to detect when the infowindow is opened?

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