HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com

Slides:



Advertisements
Similar presentations
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 4: Web Browsing.
Advertisements

Rensselaer Polytechnic Institute CSCI-4220 – Network Programming David Goldschmidt, Ph.D.
Lesson 4: Web Browsing.
Nikola Dimitroff Creating Genres creatinggenres.com.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Building Real Time Applications with ASP.NET SignalR 2.0
SignalR Real Time with SignalR Jared Rhodes Senior Consultant Magenic.
Reverse AJAX and HTML5 Based Clients for Embedded Control and Monitoring Systems C Robson, C Bohm, Stockholm University or "HTML5, why should we care?"
Development of mobile applications using PhoneGap and HTML 5
WCL315. Emulate IE9Emulate IE8Emulate IE7IE5IE7IE8IE9/Edge Standards Quirks IE 5.5 Quirks.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team
Presented by…. Group 2 1. Programming language 2Introduction.
Using jQuery Templates with ASP.NET Stephen Walther Superexpert.com
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.
Martin Kruliš by Martin Kruliš (v1.0)1.
Lightning Talk Fred Rodriguez Aakash Juneja CPSC 473 March 16, 2012.
WebSockets [intro].
Rensselaer Polytechnic Institute CSCI-4220 – Network Programming David Goldschmidt, Ph.D.
Mobile App Support Jacob Poirier Geri Hengesbach Andrea Menke Erin Rossell.
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
WEB WORKERS 1 Amitesh Madhur (Exceptional Performance, Bangalore)
Feature Windows Phone IE10 iOS Safari Android Chrome Blackberry WebKit Web Storage Yes (7)YesYes (2)Yes (6) Geolocation Yes.
MediMizer User Group  Users want an iPad application  Users want a web application  IT wants a no-installation client  Can be used anywhere.
Grid Chemistry System Architecture Overview Akylbek Zhumabayev.
HTML5, part III – API, … Štěpán Developer Evangelist Microsoft, Czech Republic.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
AJAX محمد احمدی نیا 2 Of 27 What is AJAX?  AJAX = Asynchronous JavaScript and XML.  AJAX is not a new programming language, but.
HTML5 Gaurav Jaiswal Singsys Pte. Ltd.. What is HTML5?
Vitaliy Tarnavskyy Jun 26, 2013 Using Web workers in Javascript.
1 3 Computing System Fundamentals 3.4 Networked Computer Systems.

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CS2550 Dr. Brian Durney. SOURCES  JavaScript: The Definitive Guide, by David Flanagan  Dive into HTML5, by Mark Pilgrim
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.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
Overview Web Technologies Computing Science Thompson Rivers University.
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.
SVG technology SVG technology is what we want? is what we want? Jaehoon Woo KNU Real-Time Systems Lab. KNU Real-Time Systems Lab.
Keith Telle Lead Software Engineer Bit Wizards Behind the Magic: SignalR Demystified.
Using HTML5 to Build Offline Applications Woody Pewitt Icenium
+ CIW LESSON 4 Web Browsers. + Basic Functions of Web Browsers Provide a way for users to access and navigate Web pages Display Web pages properly Provide.
Phonegap Bridge – Storage CIS 136 Building Mobile Apps 1.
Development of Internet Applications HTML5 Ing. Jan Janoušek 7.
ArcGIS for Server Security: Advanced
Web Technologies Computing Science Thompson Rivers University
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
CS5220 Advanced Topics in Web Programming Introduction to WebSocket
Lesson 4: Web Browsing.
Application with Cross-Platform GUI
Microsoft Ajax Taking Ajax to the Next Level
CIS 136 Building Mobile Apps
Building real-time web apps with WebSockets using IIS, ASP.NET and WCF
Building offline access in Metro style apps and websites using HTML5
Myth Busting: Top 5 Web App Myths
Building real-time web apps with HTML5 WebSockets
The Application Lifecycle
03 | Building a Backend with Socket.IO and Mongo
ISC440: Web Programming 2 AJAX
Building responsive apps and sites with HTML5 web workers
CIS 136 Building Mobile Apps
HTML5 and Local Storage.
Secure Web Programming
Lesson 4: Web Browsing.
HTML5 Level I CyberAdvantage
Web Technologies Computing Science Thompson Rivers University
HTML5 Level I CyberAdvantage
Presentation transcript:

HTML5 Applications with ASP.NET Web Forms Stephen Walther Superexpert.com

Agenda What features matter for data-driven apps? ● WebSockets ● Web Workers ● Web Storage ● IndexedDB ● Offline Applications

HTML5 WebSockets – Overview Enables lightweight two-way communication over a TCP socket. Long Polling, Slow Talking, Server Push, Comet Stock Notifications, Chat, Games

HTML5 WebSockets – Standards Protocol – IETF April 2011 standard at: ● thewebsocketprotocol-07 thewebsocketprotocol-07 JavaScript API – W3C June 2011 standard at: ●

HTML5 WebSockets – Browser Support Chrome ● Chrome9+ Safari ● Safari5, iOS Safari Firefox ● Firefox4, Firefox6 Internet Explorer ● IE9 Web Socket support was removed from Firefox because of security issues

HTML5 WebSockets – Server Support ● IIS ● Jetty ● Node.js Microsoft HTML5 Labs WebSockets server:

HTML5 WebSockets – API Create a new socket with window.WebSocket: var websocket = new WebSocket("ws://SomeSite.com/chat");

HTML5 WebSockets – API 1 Property ● readyState 4 Events: ● onopen ● onmessage ● onclose ● onerror 3 Methods: ● send(DOMString) ● send(ArrayBuffer) ● send(Blob)

HTML5 WebSockets – Demos Creating a super simple Chat Service…

HTML5 WebSockets – Demos Creating a multiplayer online game…

HTML5 Web Workers – Overview ● Enables you to run a script in a background thread (run multi-threaded JavaScript). ● Useful when you don’t want to block the UI thread when executing a long running script. ● Standard located here: work/ work/

HTML5 Web Workers – Support Firefox Chrome Safari Opera Internet Explorer

HTML5 Web Workers – API Create a new worker with window.Worker: var worker = new window.Worker(“DoSomethingHard.js”);

HTML5 Web Workers – API Methods: ● importScripts() ● postMessage() ● close() ● myWorker.terminate() Events: ● myWorker.onmessage ● myWorker.onerror

HTML5 Client Data Overview Web Storage – key/value storage on the browser. IndexedDB – key/value storage on the browser with support for cursors and indices Web SQL - relational database support in the browser (SqlLite).

HTML5 Web Storage – Overview Web Storage (AKA DOM Storage): ● Session Storage ● Local Storage (Originally called Global Storage in Firefox) Standard at:

HTML5 Web Storage Browser Support: ● Chrome5 (5 Megs) ● Firefox2 (5 Megs) ● Opera10 (5 Megs) ● Safari4 (5 Megs) ● IE8 (10 Megs)

HTML5 Web Storage sessionStorage: ● length ● key(index) ● setItem(key, string) ● getItem(key) ● removeItem(key) ● clear() Page specific and not session specific

HTML5 Web Storage localStorage: ● length ● key(index) ● setItem(key, string) ● getItem(key) ● removeItem(key) ● clear()

HTML5 Web Storage DataJS: Using DataJS to prefetch pages

HTML5 IndexedDB – Overview Not a relational database, key value database Does not use SQL Supports indices, constraints, transactions

HTML5 IndexedDB Browser Support: ● Firefox4 (mozIndexedDB) ● Google Chrome 12 (webkitIndexedDB) ● IE9 (HTML Labs plugin)

HTML5 IndexedDB Firefox stores the IndexedDB database here: C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\shhxrq9s.d efault\indexedDB

HTML5 Offline Web Applications Use a web application even when you are not connected to the Internet Standard located at: ●

HTML5 Offline Web Applications Browser Support: ● Chrome ● Firefox ● Safari ● Opera ● IE9

HTML5 Offline Web Applications Cache Manifest # version 2 # Content Images/karlsruhe.jpg Content/Site.css NETWORK: Services/SomeService.svc

HTML5 Offline Web Applications window.applicationCache Properties: status – UNCACHED, IDLE, CHECKING, DOWNLOADING, UPDATEREADY, OBSOLETE Methods: update() swapCache() Events: onchecking, onerror, onupdate, ondownloading, onprogress, onupdateready, oncached, onobsolete

HTML5 Offline Web Applications window.navigator.online: ● true – browser might be online. ● false – browser definitely offline.

Big HTML5 Demo JavaScript Reference Application: ● Demonstrates: ● Web Storage ● Offline Web Applications ● Works with IE, Chrome, Firefox, Opera, Safari

Download the Sample Code Visit Stephen Walther’s blog to download the sample code for this talk: ●

Website: Phone:

Your Feedback is Important Please fill out a session evaluation form. Thank you!