function getinfo() { //document.getElementById("alerts").value = (position.coords.latitude + ',' + position.coords.longitude); alert (position.coords.latitude); document.getElementById("alerts").value = (position.coords.latitude); } google.maps.event.addDomListener(window,'load', initialize); google.maps.event.addDomListener(window,'load', getinfo); </script>
<div id="map_canvas" style="margin-top:10px;width:100%; height: 300px"></div> <input type="hidden" id="alerts" name="alerts" value="" /> On Mar 3, 4:01 pm, Paulo Fernandes <paulofernande...@gmail.com> wrote: > Simple, use Javascript :D > > Paulo > Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/paulofernandesj > +55 11 9797-5974 > > > > > > > > On Thu, Mar 3, 2011 at 5:12 PM, Soluphia <animod...@gmail.com> wrote: > > How can I put the location of a marker I place on a map into a hidden > > input field? Thank you! > > > -- > > 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. -- 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.