About

June 2009 Entries

Based on Yesterday’s post. I thought we could take the new HTML 5, featured offered by Android and iPhone OS 3.0 and do something almost useful with it. So sticking to things close to my heart, I decided to expand my example and build a simple web-page that finds geo-caches near where you are. Use it here. http://www.binaryrefinery.c... It works really well. Technorati Tags: iPhone,HTML 5,Geocaching,OS 3 Source here - <html> <head> <title> Geocaching Lookup </title> ......

Both Mobile Safari (in iPhone OS 3.0) and Google Android now both support getting the location of the current user. How cool is that. Finally mobile web-pages can be location aware. The user is prompted for whether they wish to enable this facility on a per site basis. Here’s the HTML/Javascript that does it all. <html> <head> <script> navigator.geolocation.getCu... noLocation); function foundLocation(position){ var lat = position.coords.latitude; var long ......