Worked, gotcha! Replaced data.length with data.responseText like you said. On Nov 2, 11:28 am, Chad Killingsworth <chadkillingswo...@missouristate.edu> wrote: > In your download url callback at line 109, you are using the data > parameter incorrectly. It is an XmlHttpRequest object. If you want the > text the ajax call returned, you'll need to check data.responseText. > data.length is not a valid property. > > Your call to address.php isn't returning anything either. I'm not sure > what you are expecting, but an empty string probably isn't it. > > Chad Killingsworth > > On Nov 2, 1:16 pm, whereschp <wheres...@gmail.com> wrote: > > > bump > > > On Oct 25, 5:59 pm, gh0st <hollmanc...@gmail.com> wrote: > > > > Ok here's the deal. I'm using two different tutorials to get my > > > desired outcome but the tutorials have conflicting functions. > > > I want to allow user submitted data for saving placemarkers so I > > > followed this > > > tutorial:http://code.google.com/apis/maps/articles/phpsqlinfo_v3.html > > > And I want to fetch those user submitted markers from the sql table > > > and display so I followed this > > > tutorial:http://code.google.com/apis/maps/articles/phpsqlajax_v3.html > > > > The downloadUrl functions on each tutorial vary only slightly when the > > > call callback. > > > function from saving placemarkers tut: callback(request.responseText, > > > request.status); > > > function from fetching placemarkers tut: callback(request, > > > request.status); > > > > When I put the desired callback function in the page for what I want > > > to do, say saving a placemarker, the function call works. It completes > > > the function call and closes the infowindow but it does not display > > > markers already saved in the sql table. > > > When I put the callback for fetching placemarkers it doesn't allow me > > > to save placemarkers but displays all the markers already saved in the > > > sql table. > > > > I can paste all my code again if necessary. > > > > On Oct 16, 2:46 am, Rossko <ros...@culzean.clara.co.uk> wrote: > > > > > > > >www.whereschp.com/new/index.php?p=mainmap > > > > > My browser reports a javascript error in saveData() > > > > location = new google.maps.marker.getLatLng(); > > > > Why would you want to be creating a new marker at that point? > > > > > The example at > > > > http://code.google.com/apis/maps/articles/phpsqlinfo_v3.html > > > > reads a latlng from an existing marker > > > > var latlng = marker.getPosition();
-- 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...@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.