On Oct 1, 5:01 pm, Chad Killingsworth
<[email protected]> wrote:
> If the info window is opened in response to an event - like say a
> marker click - then you might try that event.
>
I used a timer which sets the focus and the input field stops the
timer when it gets the focus:
<textarea cols="30" rows="3" onfocus="if (input_focus_timer)
{clearInterval(input_focus_timer);input_focus_timer = undefined}"></
textarea>
...
var input_focus_timer; // global
...
// the try catch is needed for IE, because if focus is set too
early when the element is not visible
// then it throws an error
input_focus_timer =
setInterval("try{document.getElementById('input').focus()}catch(err)
{}", 500);
Not a pretty solution, but at least it works. It would be much nicer
if the onOpenFn function of the v2 infowindow were available in the
v3 api.
--
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.