[Google Maps API v2] Re: execute javascript code when infoWindow was loaded (problem with IE9 and FF4)
On 18 Mag, 20:37, Rossko <ros...@culzean.clara.co.uk> wrote:
> On May 18, 2:47 pm, Zanardi <gaspero...@supereva.it> wrote:
>
> > I try this event, but when the onOpenFn is execute, if I try to get
> > one div (the div is into the infowindow), this is null:
>
> > window.parent.document.getElementById('divId').innerHTML =
> > 'ciao';
>
> > but if, after the onOpenFn I start a setTimeout, all run ok (but is
> > not a clean solution).
>
> > setTimeout("window.parent.document.getElementById('divId').innerHTML =
> > 'ciao'",10000);
>
> > Is not true what they write in the documentation:
> > "onOpenFn - Function is called after the info window is opened and the
> > content is displayed."
>
> > :-)
> > Can you suggest a solution?
>
> There's a trick described in this threadhttp://groups.google.com/group/google-maps-api/browse_thread/thread/3...
Ok, is very similar to my solution with the setTimeout.
Thanks for the help, I have been very helpful.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home