On Jan 20, 2:32 pm, Gary <[email protected]> wrote:
> I'm confused as to where I need to put that piece of code.
>
> I'm assuming: document.getElementById("labelContainer.innerHTML =
> html").innerHTML = html;
> ... is incorrect if I tried that.
Yes, that's incorrect. That line attempts to find an element with an
id of "labelContainer.innerHTML = html", and you don't have any
elements which you have called that.
Replace that line with
labelContainer.innerHTML = html
which sets the innerHTML of the object which JavaScript knows as
"labelContainer". When you created the div in the control, you used
labelContainer = document.createElement("div")
which created a div and assigned it to Javscript's labelContainer
variable. It didn't give it an HTML id attribute.
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.