Try this:

startpoint = data.documentElement;
myLatLng = new
google.maps.LatLng(parseFloat(startpoint.getAttribute("centerLat")),parseFloat(startpoint.getAttribute("centerLng")));

Chad Killingsworth

On Apr 1, 10:28 am, Erwin Dicker <[email protected]> wrote:
> i tray to understand it...
>
> but what do i have to change?
>
> first i get all the nodes with startpoint.. in lin33..
>
> then line35 i wanna have the attribute of the first node...
>
> gr.
>
> On 1 apr, 13:31, Chad Killingsworth
>
> <[email protected]> wrote:
> > Sorry wasn't paying attention and clicked the wrong link. I see the
> > error.
>
> > On line 33: document.documentElement points to the root node of the
> > XML - in this case the startpoint node. So on line 35 you are really
> > looking for startpoint nodes that are within the root startpoint node
> > (and they don't exist).
>
> > Chad Killingsworth
>
> > On Apr 1, 5:22 am, Erwin Dicker <[email protected]> wrote:
>
> > > working?
>
> > > i don't see the map i get a gray screen...
> > > and this error... startpoint[0] is undefined
>
> > > it's strange..
>
> > > gr.
>
> > > On 1 apr, 01:27, Chad Killingsworth
>
> > > <[email protected]> wrote:
> > > > It's working now for me ...
>
> > > > Chad Killingsworth
>
> > > > On Mar 31, 4:44 pm, Erwin Dicker <[email protected]> wrote:
>
> > > > > Hi
>
> > > .
> > > > > it's nou on.. but the problem is still there..
>
> > > > > gr.
>
> > > > > On 31 mrt, 22:53, Chad Killingsworth
>
> > > > > <[email protected]> wrote:
> > > > > > You are referencing "util.js" in a script tag in your header, but 
> > > > > > that
> > > > > > file isn't on your server. That file is what defines downloadUrl.
>
> > > > > > Chad Killingsworth
>
> > > > > > On Mar 31, 2:19 pm, Erwin Dicker <[email protected]> wrote:
>
> > > > > > > hi
>
> > > > > > > in firebug i get this error "downloadUrl is not defined"
>
> > > > > > > i used this sample for making it..
>
> > > > > > >http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu...
>
> > > > > > > gr.

-- 
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.

Reply via email to