(4/6) Implementing geolocation.getCurrentPosition in Script - HTML5 Geolocation

Publié le: 31 octobre 2012
sur la chaîne: Code Cascade
2,046
5

Once we have determined that the visitor's device has the ability to geolocate via the navigator.geolocation method, the next question is whether or not that information has been retrieved.

navigator.geolocation.getCurrentPosition is the method that will tell used whether or not the geolocation of the visitor has been determined. We will also need to pass an argument to the getCurrentPosition so if successful, it will know what to do next.

Source Code:

http://dragosbogdan.net/html5/basic-g...

Additional Resources:

http://dev.w3.org/geo/api/spec-source...


Sur cette page du site, vous pouvez voir la vidéo en ligne (4/6) Implementing geolocation.getCurrentPosition in Script - HTML5 Geolocation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Cascade 31 octobre 2012, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,046 fois et il a aimé 5 téléspectateurs. Bon visionnage!