Skip to main content
Question

Geo Locate App

  • May 21, 2020
  • 0 replies
  • 28 views

Using the Geo Locate app, I have this working properly. Wanted to time stamp a date time field as well as a user field with the user who pressed the button. 

This code is in the JS Code Page:

jQuery(document).ready(function getLocation()jQuery(document).ready(function getLocation()  {  if (navigator.geolocation)    {    navigator.geolocation.getCurrentPosition(showPosition);    }  

var test = $.ajax({url: url,async:false,success: pushResult}).responseText;   return false;});
function showPosition(position){

      var editURL = "";      editURL = "xxxxx";      editURL += "?act=API_EditRecord&key=" + QBU_recid;      editURL += "&_fid_834=" + position.coords.latitude; editURL += "&_fid_837=" + position.coords.latitude;      editURL += "&_fid_835=" + position.coords.longitude; editURL += "&_fid_838=" + position.coords.longitude;           $.ajax({url: editURL,async:false});
      location.reload(true);
This is the code from the buttton:

"javascript:" &
"var QBU_recid="& [Record ID#] &";" &
"void(jQuery.getScript('" & URLRoot() & "db/xxxxx?act=dbpage&pagename=ingeo.js'))"



------------------------------
ProjectsForce
------------------------------
This topic has been closed for replies.