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.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

What is HTML5…?. ”…removes the need for plugins” ”…can handle multimedia directly” ”…enables rich, interactive clients” ”…enables advanced visual designs”
HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 4: Web Browsing.
SHAREPOINT PAKISTAN USER GROUP #1 SHAREPOINT COMMUNITY IN PAKISTAN AND ASIA HTML5 and SharePoint 2013.
Building Mobile Apps in the Cloud – Comparing Approaches.
Web Server Programming
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.
Lesson 4: Web Browsing.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
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.
Computer Concepts 2014 Chapter 7 The Web and .
Tips for working with disconnected web mapping apps Andy Gup, Javier Abadia.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Working with Objects Creating a Dynamic Web Page.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Presented By: Mahmoud Ghoz Internet Explorer 9 and HTML5 for Developers.
MediMizer User Group  Users want an iPad application  Users want a web application  IT wants a no-installation client  Can be used anywhere.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
HTML5, part III – API, … Štěpán Developer Evangelist Microsoft, Czech Republic.
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.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
HTML5 Gaurav Jaiswal Singsys Pte. Ltd.. What is HTML5?
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
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,
Managing the Application Life Cycle
Creating Animations, Working with Graphics, and Accessing Data Lesson 9.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Learning Aim C.  In this section we will look at some simple client-side scripts, browser compatibility, exporting and compressing and suitable file.
® ® copyright © 2013 Open Geospatial Consortium What HTML5 and REST mean to the Geo community Raj Singh, PhD Open Geospatial Consortium
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.
Using HTML5 to Build Offline Applications Woody Pewitt Icenium
HTML5 Requirement Driven Design David Tarrant Electronics and Computer Science.
Windows Vista Configuration MCTS : Internet Explorer 7.0.
Phonegap Bridge – Storage CIS 136 Building Mobile Apps 1.
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 9 HTML 5 Video and Audio
The HTML5 logo was introduced by W3C in 2010
Chapter 17 The Need for HTML 5.
Getting Started with HTML
4.01 How Web Pages Work.
Chapter 4: Feature Detection & Drag and Drop
Essential tools for implementing and testing websites
Gaurav Jaiswal Singsys Pte. Ltd.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Lesson 4: Web Browsing.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
HTML5 – The Saga Continues
Chapter 4: HTML5 Media - <video> & <audio>
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
Application with Cross-Platform GUI
CSS3 and New HTML5 Tools.
Building offline access in Metro style apps and websites using HTML5
HTML5 and Local Storage.
Web Development & Design Foundations with H T M L 5
Lesson 4: Web Browsing.
HTML5 and Local Storage.
4.01 How Web Pages Work.
Yale Digital Conference 2019
Presentation transcript:

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 multimedia Keeping it easily readable by humans Consistently understood by computers and devices Adds many new elements and capabilities to HTML Rich Internet Applications9. HTML 5 and RIAs #2

HTML 5 RIA-friendly features Include: Video/Audio Offline Application cache Local storage Geolocation Canvas Drag and drop Native browser support for capabilities previously only available with plug-ins Rich Internet Applications6. Ajax functionality #3

Demos Some demos in code download Others at Rich Internet Applications6. Ajax functionality #4

Browser support Evolving Test your browser at Gives compatibility score Chrome current has highest score IE9 scores very low Use Modernizr.js to test feature compatibility in client code Rich Internet Applications6. Ajax functionality #5

Video Supported formats H.264/MPEG4 (.mp4) Theora (.ogv) WebM Place video on page with element Browser provides controls for play/pause, volume, etc. Configure server for appropriate mime types (can’t test withASP.NET dev server) Rich Internet Applications6. Ajax functionality #6

Offline applications Offline application availability particularly important on occasionally connected devices Aspects: Ability to detect in client code when online/offline Ability to control the way the browser caches the application pages and resources Local storage, possibly synchronise with server when next online Rich Internet Applications6. Ajax functionality #7

Offline navigator.online property boolean false if user selects, for example, Work Offline in Firefox or Airplane mode on mobile device window.online and window.offline events Rich Internet Applications6. Ajax functionality #8

Application cache Browsers have caching mechanisms but these are generally unreliable The Application Cache allows a developer to specify which files the browser should cache and make available to offline users. Application will load and work correctly, even if the user presses the refresh button while offline Rich Internet Applications6. Ajax functionality #9

Cache manifest Simple text file that lists the resources the browser should cache for offline access Referenced in html element Need to configure mime type ext/cache- manifest on server Rich Internet Applications6. Ajax functionality #10...

Cache manifest sections CACHE: default section for entries files will be explicitly cached after they're downloaded for the first time NETWORK: resources that require a connection to the server requests to these resources bypass the cache, even if the user is offline FALLBACK: fallback pages if a resource is inaccessible. Rich Internet Applications6. Ajax functionality #11

Cache status window.applicationCache.status Values: UNCACHED = 0 IDLE = 1 CHECKING = 2 DOWNLOADING = 3 UPDATEREADY = 4 OBSOLETE = 5 Rich Internet Applications6. Ajax functionality #12

Cache events cached, checking, downloading, error, noupdate, obsolete, progress, updateReady Attach handlers to window.applicationcache.event For example window.applicationCache.addEventListener( 'checking', handleCacheEvent, false); Rich Internet Applications6. Ajax functionality #13

Using the application cache Use manifest to tell browser what should be cached Use events and status to detect changes to cache Note that change a resource on the server is not enough for the browser to know about it – the cache manifest itself may change Common to use comment with version number to provide a safe way of refreshing manifest Rich Internet Applications6. Ajax functionality #14

Application cache demo Html5Demo > Manifest Note that developer tools in Chrome show cache Rich Internet Applications6. Ajax functionality #15

Web storage Local storage Per domain, available to all scripts in domain that stored data Persists after browser closed Session storage Per page per window Removed when window closed Both store simple key-value pairs Rich Internet Applications6. Ajax functionality #16

Web storage vs cookies Capacity Depends on browser, but typically (5MB) much greater than cookies (4kB) Web storage is accessible from client only, not sent to server not part of conversation between browser and server Rich Internet Applications6. Ajax functionality #17

Using local storage Html5Demo > LocalStorage and LocalStorageOther Store and retrieve with localStorage.getItem and localStorage.setItem Storage events window.addEventListener("storage", handle_storage, false); only fire on windows other than the one which performed the storage action which caused the event Rich Internet Applications6. Ajax functionality #18

Using local storage Chrome allows you to view and edit local storage Rich Internet Applications6. Ajax functionality #19

Geolocation Opt-in service Uses GPS, cell tower triangulation or possibly other techniques Accuracy will depend on device Work on desktop browser but may be very inaccurate navigator.geolocation.getCurrentPosition Demo Rich Internet Applications6. Ajax functionality #20

Canvas Allows drawing within browser window Demos Rich Internet Applications6. Ajax functionality #21

Drag and drop Drag and drop elements within page Drag and drop files for viewing or XHR upload Use JavaScript File API FileReader object provides read access to local files Demos Rich Internet Applications6. Ajax functionality #22

What’s next? The exam! Rich Internet Applications6. Ajax functionality #23