Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by CARADVERT2013

  1. Hi Support team I created a table and this table records will be created by user when the run a Form. In this form, I try records user GEO location. I attached a HTML Block into the form. Please see the code : Once user to execute this form and click submit, user GEO location will be updated into the table by field Latitude and Longitude. I have tried so many time, but stiff not successful to update this two field. Can you please help to check what is the missing, please? Regards Patrick Li ------------------------------------------------- </div> <script> if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(GEOprocess, GEOdeclined); } else{ document.getElementById('geo').innerHTML = 'Your browser do not support geo-location.'; } // called when the browser has shown support of navigator.geolocation function GEOprocess(position) { gLongitude = position.coords.longitude; gLatitude = position.coords.latitude; console.log('latitude: ' + gLatitude + ' ; longititude: ' + gLongitude); // update the page to show we have the lat and long //document.getElementById('geo').innerHTML = 'Latitude: ' + position.coords.latitude + ' Longitude: ' + position.coords.longitude; document.write(document.getElementbyId('geo')(position.coords.latitude([@field:Latitude]))) </script> ----------------------------------------------------------------------------------------
  2. Hi All I also want to add GEO location based on user browser. Can you advise how to do it pls? Regards Patrick Li
  • Create New...