Re: [Google Maps API v3] Accessing innerHTML of a div in a custom control

2011-06-23 Thread RoyHB
I've gone a step further in This 
page
.

It attempts to find and list all div elements in the document in alert 
windows.
The only named div it finds is map_canvas.

I'm inferring from that that my "LatLonTxt" div isn't part of the document 
domain but rather part of the map object.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/92ZG0NTRm_oJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Accessing innerHTML of a div in a custom control

2011-06-23 Thread RoyHB
Luke, you can see it all in action at my 
site

The error that I see in the Firefox error console is:

Error: document.getElementById("LatLonTxt") is null
Source File: http://oceantracker.net/tracker/V4/test1.php
Line: 42

I understand that this may be more of a javascript question than a Google 
Map question but I'll appreciate a pointer to a solution or suggestions.

Thanks
Roy

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/e_VUWPECWj0J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Accessing innerHTML of a div in a custom control

2011-06-22 Thread Luke Mahé
Can you include a link to show what you have tried so far?

Thanks

-- Luke


On Thu, Jun 23, 2011 at 9:58 AM, RoyHB  wrote:

> New to V3 and I'm having some difficulty getting my head around the data
> model.
>
> The innerHTML of a custom control looks like:
>
> 
> some content
> 
>some other content
> 
> 
>
> i.e. there is a  within another  within the
> innerHTML of a custom control.
> I want to modify the innerHTML of div B on the fly, as events are
> triggered.
>
> I can't sort out the method to access and update this data.  Tried the
> simplest thing I could think of -
> *document.getElementById("B").innerHTML*  but that didn't work, it's
> reported as null.
>
> I'd be most appreciative if someone could point me in the right direction
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/mLlBWTMKMCkJ.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.