On Mar 14, 5:38 pm, bz <b...@boyuanzhu.com> wrote: > Here's what running the php returns: > > <?xml version="1.0"?> > <markers><marker name="Pan Africa Market" address="1521 1st Ave, > Seattle, WA" lat="47.608940" lng="-122.340141" type="restaurant"/><marker > name="Buddha Thai & Bar" address="2222 2nd Ave, Seattle, > > WA" lat="47.613590" lng="-122.344391" type="bar"/></markers> > > You can check out the error console for the site though: "TypeError: > Result of expression 'xml' [undefined] is not an > object"http://sandoftheactual.nfshost.com/code/phpsqlajax_map_v3.htmlhttp://sandoftheactual.nfshost.com/code/phpsqlajax_genxml3.php
Your downloadUrl is different from that in the tutorial. Yours: function downloadUrl(url, callback) { ... callback(request.responseXML, request.status); Tutorial: function downloadUrl(url,callback) { ... callback(request, request.status); Then in your code you have (and the tutorial has) this: downloadUrl("phpsqlajax_genxml3.php", function(data) { var xml = data.responseXML; Your code is trying to access request.responseXML.responseXML, it doesn't exist. -- Larry -- 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.