Using PHP/MySQL with Google Maps - Typo

185 views
Skip to first unread message

Pete

unread,
Sep 1, 2010, 8:21:19 AM9/1/10
to Google Maps JavaScript API v3
Hi,

http://code.google.com/apis/maps/articles/phpsqlajax_v3.html

I spent quite a while trying to get this work, and only succeeded once
I found a typo and corrected it.

The first few lines of the 'downloadURL' call are different to the
document version of the same information.

downloadUrl("phpsqlajax_genxml.php", function(data) {
-->var xml = request.responseXML;<--
var markers = xml.documentElement.getElementsByTagName("marker");

SHOULD READ
var xml = data.responseXML;

Hope this can be updated and help people out.

Pete

Luke Mahé

unread,
Sep 1, 2010, 11:06:51 PM9/1/10
to google-map...@googlegroups.com
I've fixed the typo, it should be live in a few hours.

Thanks!

-- Luke



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


Reply all
Reply to author
Forward
0 new messages