example util.js ..downloadUrl( not working for getting xml?

933 views
Skip to first unread message

Erwin Dicker

unread,
Mar 31, 2010, 3:19:16 PM3/31/10
to Google Maps JavaScript API v3

Chad Killingsworth

unread,
Mar 31, 2010, 4:53:16 PM3/31/10
to Google Maps JavaScript API v3
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 <dickersch...@gmail.com> wrote:
> hi
>
> in firebug i get this error "downloadUrl is not defined"
>
> http://www.camaros.nl/mapversie13xml1.html
>
> i used this sample for making it..
>

> http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu...http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/
>
> gr.

Erwin Dicker

unread,
Mar 31, 2010, 5:44:09 PM3/31/10
to Google Maps JavaScript API v3
Hi

ow that's whas stupid.. i forgot to upload it..
it's nou on.. but the problem is still there..

gr.

On 31 mrt, 22:53, Chad Killingsworth


<chadkillingswo...@missouristate.edu> 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 <dickersch...@gmail.com> wrote:
>
> > hi
>
> > in firebug i get this error "downloadUrl is not defined"
>
> >http://www.camaros.nl/mapversie13xml1.html
>
> > i used this sample for making it..
>
> >http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu...
>

> > gr.

Chad Killingsworth

unread,
Mar 31, 2010, 7:27:38 PM3/31/10
to Google Maps JavaScript API v3
It's working now for me ...

Chad Killingsworth

Erwin Dicker

unread,
Apr 1, 2010, 6:22:21 AM4/1/10
to Google Maps JavaScript API v3
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


<chadkillingswo...@missouristate.edu> wrote:
> It's working now for me ...
>
> Chad Killingsworth
>
> On Mar 31, 4:44 pm, Erwin Dicker <dickersch...@gmail.com> wrote:
>
> > Hi
>

.
> > it's nou on.. but the problem is still there..
>
> > gr.
>
> > On 31 mrt, 22:53, Chad Killingsworth
>
> > <chadkillingswo...@missouristate.edu> 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 <dickersch...@gmail.com> wrote:
>
> > > > hi
>
> > > > in firebug i get this error "downloadUrl is not defined"
>

>

Chad Killingsworth

unread,
Apr 1, 2010, 7:31:14 AM4/1/10
to Google Maps JavaScript API v3
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

Erwin Dicker

unread,
Apr 1, 2010, 11:28:22 AM4/1/10
to Google Maps JavaScript API v3
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

Chad Killingsworth

unread,
Apr 1, 2010, 6:51:20 PM4/1/10
to Google Maps JavaScript API v3
Try this:

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

Chad Killingsworth

Erwin Dicker

unread,
Apr 2, 2010, 3:17:09 AM4/2/10
to Google Maps JavaScript API v3
i have change it..

but still didn't work..

gr.

On 2 apr, 00:51, Chad Killingsworth

Message has been deleted

Erwin Dicker

unread,
Apr 6, 2010, 6:44:04 AM4/6/10
to Google Maps JavaScript API v3
up

On Apr 2, 12:51 am, Chad Killingsworth

Reply all
Reply to author
Forward
0 new messages