The flow will go something like this.  On my website I'll have a link
that says "Click to add your location" where users will click and then
a form will open with a google map.

Then I want to open up a google map that when clicked, stores a lat/
long to a form variable, and then passes that to another page when the
submit button is pressed.



On Dec 8, 7:52 am, aidema <[email protected]> wrote:
> What about something like this?
>
>   <script type="text/javascript">
>     function GMarker_Click()
>     {
>       var html = "<b>" + this.id + "</b>";
>       this.openInfoWindowHtml(html);
>     }
>   </script>
> </head>
> <body>
>   <form id="Form1" method="post" runat="server">
>     <wcp:GMap runat="server" id="gMap" Width="500px" Height="300px" />
>   </form>
> </body>
>
> On Dec 8, 7:40 am, Mike Williams <[email protected]> wrote:
>
>
>
> > What do you mean by "send"?
>
> > You can send it from the client page to your server script with
> > GDownloadUrl().
>
> > See:http://econym.org.uk/gmap/store.htm
>
> > If you mean send it in an email, you can't do that directly from the
> > client code. You may be able to do it from server (so once again send it
> > to your server with GDownloadUrl()) but some ISPs don't permit
> > user-written server scripts to send emails because of the possibility of
> > generating spam.
>
> > Some ISPs may supply ISP-written scripts for email forms that impose
> > restrictions that prevent abuse, in such cases you could put your data
> > into such a form like
> >   document.getElementById("latitude").value = marker.getLatLng().lat()
>
> > If all else fails you could throw the data at the user's mail client
> > with a mailto: link. Something like this if I remembered the syntax
> > correctly:
>
> > var text = "Location: "+marker.getLatLng().toUrlValue(5);
> > var mailto = "mailto:[email protected]?subject=my Location &body=" + text;
> > document.getElementById("link">.innerHTML =
> >         '<a href="' + mailto +">SEND<\/a>';
>
> > --
> > Mike Williamshttp://econym.org.uk/gmap- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to