Search the Community
Showing results for tags 'gps'.
-
I have scripts which allow me to collect and post the users GPs co-ordinates (with their permission) which they click on a button which I am working on a single record selected from a report page. I wouold like to be able to update multiple records with these same GPS co-ordinates via the Bulk-Edit facility. We already get a timestamp when they click the button and use a var to post text such as "Bulk-booking" into a specific field (ArrOnStandloc) so the following all works Ok within the button script. var v_TJdriver = "Bulk booking"; var TJdriver = "ArrOnStandloc"; var inputNameTJdriver = "BulkEdit"+ TJdriver; var checkboxNameTJdriver = "Enable"+ inputNameTJdriver + "Ckb"; document.getElementsByName(checkboxNameTJdriver )[0].checked=true; document.getElementById(inputNameTJdriver).value = v_TJdriver; butit returns nothing when i try to make the var v_TJdriver refer to the results of navigator.geolocation using { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { alert ("Geolocation is not supported by this browser."); } function showPosition(position) { v_lat = position.coords.latitude; v_long = position.coords.longitude; var v_TJdriver = v_lat + " / " + v_long } } Not sure if it's a limitation on using Bulk-Edit process or if I need to have an alternative scipt to collect the Lat and Long data in useable form. Any help or pointers would be appreciated. Thanks
-
Hello...I am new to Caspio, so I apologize for in advance for ignorant questions. Question: I have found articles/methods to obtain GPS coordinates for a mobile device, but does anyone have a recommendation for obtaining the GPS coordinates for a desktop computer (ex. desktop computer at a library)? I have found various APIs or services out there that can support, but they run into browser conflicts and the like...I am hoping for a solution within Caspio via Javascript. Thanks! -josh