mardi 25 juillet 2017

How to insert value of web app users latitude and longitude in sqlite database?

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