Using HTML5 to Build Offline Applications Woody Pewitt Icenium

Slides:



Advertisements
Similar presentations
HTML5 Overview Owen Williams owen at dynabooks daht com Owen Williams owen at dynabooks daht com.
Advertisements

CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
In-browser storage and me Jason Casden North Carolina State University Libraries Code4Lib 2012.
HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com
* * To use Internet Explorer 9 you need Windows® 7, but you can use Internet Explorer 8 on Windows® XP Fast Internet Explorer 9 harnesses the untapped.
Building Mobile Apps in the Cloud – Comparing Approaches.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
State of the mobile web Peter-Paul Koch Gomez Webinar, 24 March 2011 z.
Ellucian Mobile: Don’t text and drive, kids!
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
HTML5 That’s what you need to know today Ingo Rammer, thinktecture
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
Development of mobile applications using PhoneGap and HTML 5
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
What is HTML5? HTML5 is the new LEGO for both designers and programmers.
Chapter 25 Utilizing Web Storage.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
Tips for working with disconnected web mapping apps Andy Gup, Javier Abadia.
Build a Free Website1 Build A Website For Free 2 ND Edition By Mark Bell.
HTML5 for Mobile Andrew Kinai. HTML vs HTML5 HTML:A language that describes documents' formatting and content, which is basically composed of static text.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
CHAP 6. USING THE HTML5 WEB STORAGE API.  Cookie - Are a built-in way of sending text values back and forth from server to client.  Servers can use.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Partners’ Webinar 01/31/2013 Karol Jarkovsky Solution Architect Upgrading Kentico.
HTML5 Gaurav Jaiswal Singsys Pte. Ltd.. What is HTML5?
Offline Web Apps - an offline web application is a list of URLs for HTML, CSS, JavaScript, images, or any other kind of resource. Most browsers have offline.
Don’t Disconnect Me! The challenges of building offline-enabled web apps Matthias Oßwald,
HTML 5 Tutorial Chapter 6 Web Storage. Storing Data on The Client HTML5 offers two new objects for storing data on the client: localStorage - stores data.
CMap Version 0.16 Ben Faga. CMap CMap Version 0.16 Bug fixes and code optimizations More intuitive menu system Asynchronous loading of comparative map.
CS2550 Dr. Brian Durney. SOURCES  JavaScript: The Definitive Guide, by David Flanagan  Dive into HTML5, by Mark Pilgrim
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Google Map Engine Can export images to Map Engine from Earth Engine
Managing the Application Life Cycle
Creating Animations, Working with Graphics, and Accessing Data Lesson 9.
Rich Internet Applications 9. HTML 5 and RIAs. HTML 5 Standard currently under development by W3C Aims to improve the language with support for the latest.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
5 Free Online Video Downloader for Android Google Android is the most popular phone system on the world, and the Android phone screen is becoming bigger.
What is HTML5? HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01, came in The web has changed a lot since then. HTML5.
丁建文 國立高雄應用科大資管系副教授 兼任計網中心軟體發展組組長 跨平台行動應用軟體開發技術 : HTML5 & Mobile JavaScript Framework 暨南大學.
TNPW1 Ing. Jiří Štěpánek.  In current version (XHTML 1.0 strict)  No multimedia elements  No semantics elements  Only few input types  Only few document.
Stuff to memorise… "A method tells an object to perform an action. A property allows us to read or change the settings of the object."
Agenda Steps of App Building The Runtime Environment Managing App Data Debug and Test an App Validate an App Publish an App to a Store Packaging Apps.
THE FUTURE IS HERE: APPLICATION- AWARE CACHING BY ASHOK ANAND.
Phonegap Bridge – Storage CIS 136 Building Mobile Apps 1.
Google Maps API v3: Built First for Mobile Susannah Raub Google June 24, 2010.
Development of Internet Applications HTML5 Ing. Jan Janoušek 7.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
Chapter 17 The Need for HTML 5.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Jill Sullivan Senior Marketing Manager Infront Webworks
CHAPTER 9 APIS. CHAPTER 9 APIS WHAT IS AN API?
Chapter 4: HTML5 Media - <video> & <audio>
Download Instructions
Application with Cross-Platform GUI
CIS 136 Building Mobile Apps
Building offline access in Metro style apps and websites using HTML5
The Application Lifecycle
CSE 154 Lecture 22: AJAX.
Moodle Mobile offline features Daniel #mootus16.
CIS 136 Building Mobile Apps
Architecture.
HTML5 and Local Storage.
Architecture.
Network Controllable MP3 Player
Learn on the Move with the Moodle Mobile App
Introduction to WebGL 3D with HTML5 and Babylon.js
Presentation transcript:

Using HTML5 to Build Offline Applications Woody Pewitt Icenium

Features that make HTML5 offline web apps a reality Application cache Online/Offline events localStorage Web SQL & indexed database

Application cache Offline browsing Speed Reduced server load

App Cache Via. Cache Manifest... CACHE MANIFEST # version 0.4 # Files to cache CACHE: favicon.ico index.html onlinedemo.html fallback.html Content/jquery.mobile min.css Scripts/jquery min.js Scripts/jquery.mobile js Content/images/ajax-loader.gif Content/images/icons-18-white.png NETWORK: * FALLBACK: *.html fallback.html Manifest file must be served with the mime-type “text/cache-manifest”

Online/Offline events checking Fired once when the app reads the manifest file to see if it has changed. noupdate The manifest file has not changed. downloading Files are being downloaded progress Fired once per each file downloaded. If you have 15 files, you’ll see 15 progress events. Unfortunately, the event itself doesn’t contain information about which file just completed, so it’s fairly limited in its current form. cached Files have finished downloading. updateready A new copy of the cache is ready to be swapped in. obsolete The manifest file is code 404 or code 410; the application cache for the site has been deleted. error An error occurred when loading the manifest, its parent page, or a listed resource, or the manifest file changed while the update was running. The cache update has been aborted.

LocalStorage Web Storage Provides a simple key-value mapping Web SQL Database Gives you all the power - and effort - of a structured SQL relational database IndexedDB Like Web Storage, it's a straightforward key-value mapping, but it supports indexes File Access An API for reading file content in JavaScript

Web Storage localStorage & sessionStorage Supported on all modern browsers Simple API & usage Semantic events available Poor performance with large/complex data searching, storing and retrieving

Web SQL Database Supported on major mobile browsers Android Browser, Mobile Safari, Opera Mobile & several desktop browsers Good performance generally Asynchronous API (Synchronous API is also available for WebWorkers.) Good search performance Robust Supports a transactional database model Easier to maintain integrity of data, due to rigid data structure. Deprecated

IndexedDB Arisen from experiences with both Web Storage & Web SQL Database Can be seen as an attempt to combine their strengths without incurring their weaknesses Asynchronous API Indexes

File Access Can store large content and binary files images, audio, video, PDFs, etc. Good performance Asynchronous API Very early standard No transaction support No built-in search/indexing support

Resources\References douchebag/ douchebag/