On Oct 23, 1:36 pm, parky128 <[email protected]> wrote:
>
> Basically I am receiving position updates and new text description
> which needs to be set in the associated infoWindow's for my markers.
> When I get an update I try to find the div's using
> document.getEllementById() but I cannot reference them as they are
> hidden. If they are showing its not a problem but of course they are
> not necessarily going to be showing.
>
> Is there a way round this? Or can someone suggest a better approach I
> can take?

Two approaches: my preferred way would be to retrieve the current
details when you open the infoWindow, rather than attempt to
prepopulate it. Or you could maintain a <div> element of your own
outside the page [ie use createElement to create one but don't attach
it to the page] which you could update as required and use in an
infoWindow when it's opened.

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

Reply via email to