By suresh44t
via codekhan.com
Submitted: Dec 30 2012 / 18:52
In my previous article we discussed how to listen for location updates of the user by using Geolocation API. This article provides a sample that demonstrates how to implement error handling mechanism in case we get an error while using Geolocation API. In this sample we use a callback function to handle errors that result from calls to the Geolocation API. This error callback function is specified using the optional second parameter to getCurrentPosition or watchPosition.
Add your comment