I've received location of web app user with following code, now how can I pass this JavaScript function. Now I want to record it in sqlite database. How can I do that?
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.watchPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";}
}
Aucun commentaire:
Enregistrer un commentaire