Jump to content

Recommended Posts

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) {


    } 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.




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...