You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same times JSON.stringify not serialize html5 position object (in same environments).
One way to overcome this problem is changing in plugin the view/template/_geolocalization.gsp with:
// tested Ok on FFox 10, IE 9, GCrome 17, Saf 5.1, Dorphin/Android - @jcolombo_
<script type="text/javascript">
function foundLocation(position) {
var objx = {timestamp:position.timestamp,coords:{latitude:position.coords.latitude,longitude:position.coords.longitude,accuracy:position.coords.accuracy,speed:position.coords.speed}};
var jsonPos = JSON.stringify(objx);
${remoteFunction(controller: 'geolocation',action:'setGeoPosition',params:'\'val=\' + jsonPos')}
}
navigator.geolocation.getCurrentPosition(foundLocation);
</script>
The text was updated successfully, but these errors were encountered:
Same times JSON.stringify not serialize html5 position object (in same environments).
One way to overcome this problem is changing in plugin the view/template/_geolocalization.gsp with:
// tested Ok on FFox 10, IE 9, GCrome 17, Saf 5.1, Dorphin/Android - @jcolombo_
<script type="text/javascript"> function foundLocation(position) { var objx = {timestamp:position.timestamp,coords:{latitude:position.coords.latitude,longitude:position.coords.longitude,accuracy:position.coords.accuracy,speed:position.coords.speed}}; var jsonPos = JSON.stringify(objx); ${remoteFunction(controller: 'geolocation',action:'setGeoPosition',params:'\'val=\' + jsonPos')} } navigator.geolocation.getCurrentPosition(foundLocation); </script>The text was updated successfully, but these errors were encountered: