October 2011
Beginner to intermediate
448 pages
9h 25m
English
In this section, I will explain the features used to accomplish the requirements for the basic geolocation project and the e-mail project.
The W3C standard for geolocation is independent of how or what service actually supplies the information. It is assumed that the task will take time, so the request is set up as an asynchronous request. The code I wrote to make the request is
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(handler, problemhandler, positionopts);
}
else {
if (document.getElementById("place")) {
document.getElementById("place").innerHTML = "I'm sorry but geolocation services
are not supported by your browser"; document.getElementById("place").style.color ...Read now
Unlock full access