Error!
Success!

HTML5: Exception handling with the Geolocation API

0
kicks

HTML5: Exception handling with the Geolocation API  (Unpublished)

In my previous post on the Geolocation API I passed in a PositionErrorCallback to the geolocation.getCurrentPosition() method. When I received this callback I displayed a generic message informing the user something went wrong. In real-world scenarios you probably want the message to be more specific. You might also want to call a specific fallback method depending on what went wrong. This is where the PositionError argument of the PositionErrorCallback comes in handy. This object has two properties:...


Kicked By:
Drop Kicked By: