Hi,
So I found the following bit of java script which takes the location from the users device:
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
Does anyone have any idea how I might be able to use this in awareIM? In short I want to have a button on a form that would trigger this and store the lat/long in an attribute.
Any thoughts?
Thanks