hi all I would like to implement the location javascript snippet into
a hidden field in a form so that when a user enters their email
address we can see what area they are contacting us from :

Here's the snippet that uses the API

<script type="text/javascript" src="http://www.google.com/jsapi";> </
script>
<script type="text/javascript">
if (typeof(google.loader.ClientLocation.address.city) != null) {
document.write(google.loader.ClientLocation.address.city
+", "
+google.loader.ClientLocation.address.region);
} else {
document.write("Unknown location")
}
</script>

And I would like to add it to a simple form field like this:

<input type="hidden" name="Location" value="{user location here}">

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to