Link Details

Link 898865 thumbnail
User 899115 avatar

By suresh44t
via codekhan.com
Submitted: Jan 01 2013 / 12:38

In my previous article we discussed how to detect the Geolocation API availability in our browser. This article provides a sample showing how to use the geolocation object’s getCurrentPosition method to get the current location of the user and display it in a webpage. The getCurrentPosition method initiates an asynchronous request for location information and returns immediately. If the request completes successfully, a success callback that we implement to receive location data is invoked.
  • 1
  • 0
  • 168
  • 75

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax