SlideShare a Scribd company logo
HTML5
o
o
o

Location
History
Offline Apps
HTML5 STANDARDS

W3C – World Wide Web Consortium
WHATWG – Web Hypertext Application
Technology Working Group

http://upload.wikimedia.org/wikipedia/commons/f/f7/HTML5-APIs-and-related-technologies-by-SergeyMavrody.png
ESTIMATION

2012

HTML 5.0

Candidate Rec

HTML 5.1

2013

Call for Review

1st Working Draft

HTML 5.2

http://en.wikipedia.org/wiki/HTML5#New_APIs

2014

2015

2016

Recommendation

Last Call

Candidate Rec

1st Working Draft

Recommendation
HTML5 BROWSERS COMPATIBILITY

http://html5test.com/results/desktop.html
LOCATION
o

o
o

Effort of W3C to standardise an interface for
geolocation information on the client side
Gives ECMAScript set of object defining location
Uses location information servers
o
o

o
o
o
o

IP address
WiFi MAC network
Bluetooth MAC address
RFID
GPS
GSM/CDMA cell IDs
LOCATION COMAPTIBILITY
o

HTML5
Geolocation API support
IE
9.0+

o

3.5+

Safari
5.0+

Chrome
5.0+

Opera
10.6+

iPhone
3.0+

Android
2.0+

Polyfills
o

o

Firefox

https://github.com/Modernizr/Modernizr/wiki/HTML5
-Cross-browser-Polyfills#geo-location

Geolocation API / Skyhook / Navizon / Xtify /
Maxmind
LOCATION SOURCE
function get_location() {
navigator.geolocation.getCurrentPosition(show_map);
}

function get_location() {
if (Modernizr.geolocation) {
navigator.geolocation.getCurrentPosition(show_map);
} else {
// no native support; maybe try a fallback?
}
}
LOCATION OBJECT
Position Object
Property

Type

Notes

coords.latitude

double

decimal degrees

coords.longitude

double

decimal degrees

coords.altitude

double or null

meters above the reference ellipsoid

coords.accuracy

double

meters

coords.altitudeAccuracy

double or null

meters

coords.heading

double or null

degrees clockwise from true north

coords.speed

double or null

meters/second

DOMTimeStamp

like a Date() object

timestamp
LOCATION WHERE I AM?

http://en.wikipedia.org/wiki/File:Latitude_and_Longitude_of_the_Earth.svg

http://www.satsig.net/world105.gif
LOCATION DEMO
o

o

http://playground.html5rocks.com/#get_current_p
osition
http://www.maxmind.com/en/geoip_demo
HISTORY
o
o

o

Access to browser history
HTML5 – manipulate history contents stack
Ensure URLs are resource identifiable
history.pushState support

IE

·

Firefox

4.0+

Safari

5.0+

Chrome

8.0+

Opera

11.50+

iPhone

4.2.1+

Android

·
HISTORY TRAVEL

Moving forward and backward
window.history.back();
window.history.forward();
o

Moving to a specific point in history
window.history.go(-1);
window.history.go(1);
o
HISTORY CHANGE
Adding and modifying history entries
history.pushState();
history.replaceState();
o

window.history.pushState({'one':'1','two':'2'},
'History', '/history');

https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history
HISTORY DEMO

http://html5demos.com/history
https://github.com/languages/JavaScript/most_watc
hed
OFFLINE STORAGE OPTIONS
o

Storage Options
o

Web Storage
o

http://code.google.com/p/sessionstorage/

IndexedDB
o WebSQL
o

o

Why?
o
o

o
o
o

Store dynamic data
Store static resources
Store binary data
Sync data with server
Increase application performance
WEB STORAGE

o
o

Similar to cookies with enhanced capacity
Two storage areas
local storage as persistent cookies (per domain)
o session storage as session cookies
o

o
o
o

About 5MB capacity
Only client-side access
Good programmatic interface – key/value pair
WEB STORAGE & DEMO
Session storage
// Store value on browser for duration of the session
sessionStorage.setItem('session_key', 'session_value');
// Retrieve value (gets deleted when browser is closed and reopened)
sessionStorage.getItem('session_key');
Local storage
// Store value on the browser beyond the duration of the
session
localStorage.setItem('local_key', 'local_value');
// Retrieve value (works even after closing and re-opening the
browser)
localStorage.getItem('local_key');
<Storage>.removeItem();
<Storage>.clear();
http://en.wikipedia.org/wiki/Web_Storage
INDEXEDDB

o
o

o

o

Local database for hierarchical objects (structure)
Handle simultaneous data operations
(transactions)
Chrome and Firefox support; other browser
vendors
More on: https://developer.mozilla.org/enUS/docs/IndexedDB
WEBSQL
o
o

o

o

RDBMS like data storing
Supported by add-on extensions
W3C Web Applications Working Group ceased
working on the specification in November 2010
Use Lawnchair - http://brian.io/lawnchair/

http://en.wikipedia.org/wiki/Web_SQL_Database
OFFLINE APPS SUPPORT


Polyfills
http://amplifyjs.com/
 https://github.com/marcuswestin/store.js
 http://yuilibrary.com/yui/docs/cache/#offline
 http://rezitech.github.com/stash/
 http://smus.com/game-asset-loader/

MORE DEMOS
http://html5demos.com/
 https://developer.mozilla.org/enUS/demos/tag/tech:html5
 http://www.html5rocks.com/en/
 chrome://quota-internals/


HTML5 APIs support
 http://caniuse.com/
 http://mobilehtml5.org/


More Related Content

PDF
Building a Next Generation Mobile Browser using Web technologies
PDF
Sencha touchonbb10 bootcamp
PDF
RIM Casual Meetup - Bandung #DevIDBdg
PPTX
BlackBerry WebWorks
PDF
QNX, C/C++, Qt, Cascades, HTML5… So what’s now BlackBerry 10 application deve...
PDF
Cordova 3, apps para android
PDF
Sg conference multiplatform_apps_adam_stanley
PPTX
Transforming the web into a real application platform
Building a Next Generation Mobile Browser using Web technologies
Sencha touchonbb10 bootcamp
RIM Casual Meetup - Bandung #DevIDBdg
BlackBerry WebWorks
QNX, C/C++, Qt, Cascades, HTML5… So what’s now BlackBerry 10 application deve...
Cordova 3, apps para android
Sg conference multiplatform_apps_adam_stanley
Transforming the web into a real application platform

What's hot (20)

PDF
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
PPTX
JavaScript on HP webOS: Enyo and Node.js
PDF
BACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMI
PPTX
HTML5 WebWorks
PPT
Training on webwroks1
PDF
Korea linuxforum2014 html5game-sangseoklim
PDF
FEDM Meetup: Introducing Mojito
PPTX
Integrate any Angular Project into WebSphere Portal
PDF
Deview 2013 mobile browser internals and trends_20131022
PPTX
Amp by Google: The Present And Future Of Quick Content Delivery
PDF
BlackBerry10: "Built For BlackBerry (BFB)"
PDF
Why Open Web Standards are cool and will save the world. Or the Web, at least.
PPTX
10 things you can do to speed up your web app today 2016
PPTX
CM Web Application Presentation
PDF
Wordcamp Thessaloniki 2011 The Nextweb
KEY
Intro To webOS
PDF
AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...
PDF
soft-shake.ch - Introduction to HTML5
PPT
The Status Of Web Interoperability And Activities In China, Japan And Korea
PPT
HTML5 Webinar - Mind Storm Software
HTML5 and friends - JISC CETIS Conference 2010 Nottingham 15.11.2010
JavaScript on HP webOS: Enyo and Node.js
BACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMI
HTML5 WebWorks
Training on webwroks1
Korea linuxforum2014 html5game-sangseoklim
FEDM Meetup: Introducing Mojito
Integrate any Angular Project into WebSphere Portal
Deview 2013 mobile browser internals and trends_20131022
Amp by Google: The Present And Future Of Quick Content Delivery
BlackBerry10: "Built For BlackBerry (BFB)"
Why Open Web Standards are cool and will save the world. Or the Web, at least.
10 things you can do to speed up your web app today 2016
CM Web Application Presentation
Wordcamp Thessaloniki 2011 The Nextweb
Intro To webOS
AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...
soft-shake.ch - Introduction to HTML5
The Status Of Web Interoperability And Activities In China, Japan And Korea
HTML5 Webinar - Mind Storm Software
Ad

Similar to Html5 features: location, history and offline apps (20)

PPTX
PPTX
Edge of the Web
PPTX
HTML5 Programming
PPTX
Introduction to html5
PDF
URL Design
PDF
WordCamp Thessaloniki2011 The NextWeb
PPTX
HTML5 introduction for beginners
PDF
Word camp nextweb
PPTX
Dave Orchard - Offline Web Apps with HTML5
PDF
Workshop HTML5+PhoneGap by Ivano Malavolta
PPT
Testable client side_mvc_apps_in_javascript
ODP
HTML5 - The Python Angle (PyCon Ireland 2010)
PDF
Keypoints html5
PDF
HTML5 Introduction
PPT
A Microsoft primer for PHP devs
PPTX
Microsoft Azure Websites for PHP Developers
PPT
Top 10 HTML5 Features for Oracle Cloud Developers
PPTX
CodeFest 2012. Петунин Д. — Идеальные инструменты для разработки на HTML5
PDF
Best practises for HTML5 servers (Devaamo Summit 2012)
Edge of the Web
HTML5 Programming
Introduction to html5
URL Design
WordCamp Thessaloniki2011 The NextWeb
HTML5 introduction for beginners
Word camp nextweb
Dave Orchard - Offline Web Apps with HTML5
Workshop HTML5+PhoneGap by Ivano Malavolta
Testable client side_mvc_apps_in_javascript
HTML5 - The Python Angle (PyCon Ireland 2010)
Keypoints html5
HTML5 Introduction
A Microsoft primer for PHP devs
Microsoft Azure Websites for PHP Developers
Top 10 HTML5 Features for Oracle Cloud Developers
CodeFest 2012. Петунин Д. — Идеальные инструменты для разработки на HTML5
Best practises for HTML5 servers (Devaamo Summit 2012)
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf
Review of recent advances in non-invasive hemoglobin estimation
Reach Out and Touch Someone: Haptics and Empathic Computing
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf

Html5 features: location, history and offline apps