O'Reilly logo

HTML5 and JavaScript Projects by Jeanine Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required