I tried that URL_CONTENTS but it wouldnt work. The html I found online apparently will nor return the value. I am no java expert but it says something about how ajax response to processor.
In my Aware process I simply BO.attribute=URL_CONTENTS('http://url/gps.html')
Here is the html that I found and placed on one of my web server. I can open it on the browser (http://url/gps.html) and the alert works.
<html>
<head>
<title>Geolocation test</title>
<script type="application/x-javascript">
function onPositionUpdate(position)
{
var lat = position.coords.latitude;
var lng = position.coords.longitude;
//alert( lat + " " + lng);
return lat + " " + lng;
}
if(navigator.geolocation)
navigator.geolocation.getCurrentPosition(onPositionUpdate);
else
//alert("not found");
return "not found";
</script>
</head>
</html>