HTML5, CSS, JavaScript, and PHP Features
In this section, I will explain the features used to accomplish the requirements for the basic geolocation project and the e-mail project.
Geolocation
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 ...
Get HTML5 and JavaScript Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.