Link Details

Link 898865 thumbnail
User 899115 avatar

By suresh44t
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
  • 170
  • 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)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java