IPAddress=zoho.ipaddress;
User=zoho.loginuser;
location = getUrl("http://freegeoip.net/xml/");
Latitude = location.executeXPath("/Response/Latitude/text()");
Longitude = location.executeXPath("/Response/Longitude/text()");
if (navigator.geolocation) {
var timeoutVal = 10 * 1000 * 1000;
navigator
.geolocation.getCurrentPosition(
displayPosition
,
displayError
,
{ enableHighAccuracy: true, timeout: timeoutVal,maximumAge: 0 }
);
}
else {
alert
("Geolocation is not supported by this browser");
}
function displayPosition(position) {
alert
("Latitude: " + position.coords.latitude + ", Longitude: " + position.coords.longitude);
}
Not sure if this kind of client-side interaction is even support in zoho creator.