On Oct 24, 11:45 am, Rossko <ros...@culzean.clara.co.uk> wrote: > > When I search for properties that are in my database, I get undefined in the > > sidebar, null(1.2) in the drop down, and the map doesn't move. I have > > attached my code. Any help is appreciated. > > Your phpsqlsearch_genxml.php returns an invalid XML file if it doesn't > find any content for a given search. > You javascript tries to do things with it, but of course as there's no > content you see 'undefined' and so on. > You could improve your code to deal more sensibly with null values. > > I eventually found your data near New York, which returns good XML. > Your createMarker() function has an error. > It attempts to use name, address1, address2, cityStateZip and so on, > but no such variables are defined. > They're not present in your XML ; you probably want to review what > data your searchLocationsNear() function tries to parse out of your > XML.
And you still have invalid "points" in your database as I pointed out in your last thread: http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/bb49294ee9547a38/ddbec0eab42566f1#ddbec0eab42566f1 -- 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.