I\'m trying to play with the scope of js to pull a variable out of navigator.geolocation.getCurrentPosition
var lat; function callback (position) { lat =
You can save your Position variable to input hidden field on document ready. After that, you can use jQuery to get back Geolocation value
Javscript:
HTML:
//value = position latitude on load
To get back value:
jQuery('#pos_lat').val();