Jim Jackson II Ian Gilman

Similar documents
HTML5 in Action ROB CROWTHER JOE LENNON ASH BLUE GREG WANISH MANNING SHELTER ISLAND

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Course 20480: Programming in HTML5 with JavaScript and CSS3

COURSE 20480B: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Programming in HTML5 with JavaScript and CSS3

CodeValue. C ollege. Prerequisites: Basic knowledge of web development and especially JavaScript.

Full Stack Web Developer

Developer's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Programming in HTML5 with JavaScript and CSS3

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

Index LICENSED PRODUCT NOT FOR RESALE

Web Development 20480: Programming in HTML5 with JavaScript and CSS3. Upcoming Dates. Course Description. Course Outline

20480B: Programming in HTML5 with JavaScript and CSS3

20480B - Version: 1. Programming in HTML5 with JavaScript and CSS3

20480C: Programming in HTML5 with JavaScript and CSS3. Course Code: 20480C; Duration: 5 days; Instructor-led. JavaScript code.

Microsoft Programming in HTML5 with JavaScript and CSS3

Pro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"

Designing for Web Using Markup Language and Style Sheets

P a g e 1. Danish Technological Institute. Scripting and Web Languages Online Course k Scripting and Web Languages

Full Stack Web Developer

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

Index. Bootstrap framework ASP.NET MVC project set-up, default template, 223

2 Webpage Markup with HTML HTML5 Page Structure Creating a Webpage HTML5 Elements and Entities

ExecuTrain Course Outline MOC 6460A: Visual Studio 2008: Windows Presentation Foundation

IN PRACTICE. Daniele Bochicchio Stefano Mostarda Marco De Sanctis. Includes 106 practical techniques MANNING

Windows Presentation Foundation Visual Studio.NET 2008

Frontend UI Training. Whats App :

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

Introduction. Part I: Silverlight Fundamentals for ASP.NET Developers 1

MS_ Programming in HTML5 with JavaScript and CSS3.

Basics of Web Technologies

PART I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT CHAPTER 1: A BRIEF HISTORY OF WINDOWS APPLICATION DEVELOPMENT 3

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library

JavaScript: The Definitive Guide

Fundamentals of Website Development

CIW: Advanced HTML5 and CSS3 Specialist. Course Outline. CIW: Advanced HTML5 and CSS3 Specialist. ( Add-On ) 16 Sep 2018

Introduction. Part I: jquery API 1. Chapter 1: Introduction to jquery 3

brief contents PART 1 INTRODUCING WINDOWS PHONE... 1 PART 2 CORE WINDOWS PHONE... 57

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron

Contents. Acknowledgments

Getting MEAN. with Mongo, Express, Angular, and Node SIMON HOLMES MANNING SHELTER ISLAND

Table of Contents. Preface...iii. INTRODUCTION 1. Introduction to M ultimedia and Web Design 1. ILLUSTRATOR CS6 1. Introducing Illustrator CS6 17

20486-Developing ASP.NET MVC 4 Web Applications

HTML5 and CSS3 for Web Designers & Developers

HTML5, CSS3, JQUERY SYLLABUS

Overview

the web as it should be Martin Beeby

Developing ASP.NET MVC 5 Web Applications

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Techno Expert Solutions An institute for specialized studies!

Course Syllabus. Course Title. Who should attend? Course Description. Adobe Dreamweaver CC 2014

1.7 Uniform Resource Identifiers and Domain Names 13 URIs and URLs 13 Domain Names 13

P a g e 1. Danish Tecnological Institute. Developer Collection Online Course k Developer Collection

Learn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway.

Introduction to C++/CLI 3. What C++/CLI can do for you 6 The rationale behind the new syntax Hello World in C++/CLI 13

World Wide Web PROGRAMMING THE PEARSON EIGHTH EDITION. University of Colorado at Colorado Springs

A Web-Based Introduction

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

Visual Studio 2015: Windows Presentation Foundation (using VB.NET Language) Training Course Outline

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1

Programming in HTML5 with JavaScript and CSS3

Web Portfolio Design and Applications

HTML5 MOCK TEST HTML5 MOCK TEST I

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

Developing ASP.NET MVC 5 Web Applications. Course Outline

Course 1: Microsoft Professional Orientation: Front-End Web Developer

jquery in Action Second Edition !II BEAR BIBEAULT YEHUDA KATZ MANNING Greenwich (74 0 w. lang.)

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

IT6503 WEB PROGRAMMING. Unit-I

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

UX400. OpenUI5 Development Foundations COURSE OUTLINE. Course Version: 02 Course Duration: 5 Day(s)

STRANDS AND STANDARDS

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

PHP,HTML5, CSS3, JQUERY SYLLABUS

Microsoft Developing ASP.NET MVC 4 Web Applications

Reproducible Research with R and RStudio

Pro ios Design and. Development. HTML5, CSS3, and JavaScript with Safari. Andrea Picchi. Apress*

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

GRAPHIC WEB DESIGNER PROGRAM

WW.IT-IQ Training & Solutions (PTY) LTD

Pro Business Applications with Silverlight 4

MASTERS COURSE IN FULL STACK WEB APPLICATION DEVELOPMENT W W W. W E B S T A C K A C A D E M Y. C O M

the missing manual0 O'REILLY Third Edition David Sawyer McFarland Beijing Cambridge The book that should have been in the box Farnham

20486 Developing ASP.NET MVC 5 Web Applications

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Create Web Charts. With jqplot. Apress. Fabio Nelli

Certificate in Web Designing

CHAPTER 1: INTRODUCING C# 3

1.2 Wicket in a nutshell 10 Just Java 11 Just HTML 12 The right abstractions 13

Unit 3 - Week 2 lectures: Building your webapp

CIW: Site Development Associate. Course Outline. CIW: Site Development Associate. ( Add-On ) 26 Aug 2018

Acknowledgments... xix

Developing Web Applications

ASP.NET- Enterprise Applications

welcome to BOILERCAMP HOW TO WEB DEV

Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of

Transcription:

Single page web apps, JavaScript, and semantic markup Jim Jackson II Ian Gilman FOREWORD BY Scott Hanselman MANNING

contents 1 HTML5 foreword xv preface xvii acknowledgments xx about this book xxii about the cover illustration and.net 1 xxv 1.1 New toys for developers thanks to HTML5 3 New HTML5 tags and microdata 4 HTML5 applications for devices 5 Better, faster JavaScript 6 Libraries, extensions, and frameworks 6 New HTML5 JavaScript APIs 9 Cascading Style Sheets 3 11 MVC and Razor 12 1.2 HTML5 applications end-to-end 12 Page structure and page presentation 13 Page content 14 Application navigation 15 Business logic 16 Server communications 17 The data layer 18 1.3 Hello World in HTML5 19 Creating the template 20 Customizing the application 22 Building the JavaScript library 24 Building the server side 28 1.4 Summary 32 ix

x CONTENTS 2 A 3 Audio markup primer: classic HTML, semantic HTML, and CSS 33 2.1 Classic and semantic HTML markup: what s the difference? 34 2.2 Basic structural elements of all HTML tags 35 Working with the basic HTML tags 37 Making content flow where you want with block and inline elements 40 Dividing data into grids with table elements 42 Using HTML form elements 43 2.3 Semantic HTML: The semantic blueprint 44 Grouping and dividing page content with content tags 46 Going beyond semantics with application tags 51 Using media tags for audio and video content 53 2.4 Styling HTML5: CSS basics 54 Understanding CSS syntax 54 Building selectors, the most critical CSS element 55 Assigning fonts 56 Assigning and manipulating colors 57 Changing the size of an element with the box model 59 Using columns and blocks for layout 60 Changing screen layout based on changing conditions with media queries 61 Adjusting an element s presentation and location with transitions and transformations 62 Changing styles as needed with pseudo-elements and pseudo-classes 64 2.5 Summary 65 and video controls 66 3.1 Building a site to play audio and video 68 3.2 Audio and video tags 71 Using audio and video tags without JavaScript 72 Using the audio tag as an HTML element 73 Using the video tag as an HTML element 74 3.3 Controlling audio and video playback with JavaScript 76 Building custom controls for audio and video 76 Building the main.js library structure 78 Creating a JavaScript media player object 79 Completing the media experience by adding volume controls 80 3.4 Updating media types for open source content 83 3.5 Summary 85 3.6 Complete code listings 86

CONTENTS xi 4 Canvas 5 The 6 Geolocation 90 4.1 Canvas quick-start 92 Creating the basic Canvas site structure 93 Assigning size to the canvas 94 Creating the stylesheet for the sample application 95 Drawing with the 2d context object 96 Building the foundation object of the Canvas application 96 4.2 Creating and manipulating shapes, lines, images, and text 97 Understanding the basic drawing process 98 Adding shapes 100 Adding lines 101 Adding images 103 Manipulating pixels 105 Adding text 107 4.3 Animating and adding special effects to canvas images 108 Adding animation 108 Adding special effects with curves and clipping 111 Managing canvas properties during screen resizing 113 4.4 Summary 114 4.5 Complete code listing 114 History API: Changing the game for MVC sites 118 5.1 Building a History-ready MVC site 120 Launching the sample project in Visual Studio 121 Adding controllers and views 122 History and MVC routing 126 Creating the application data model 129 Loading content from the server on demand using partial views 130 5.2 Using HTML5 History 133 Adding JavaScript to handle History API navigation events 135 Working with the page URL in JavaScript 139 Using History to update the page 140 5.3 Two more small steps... 141 5.4 Summary 144 5.5 The complete JavaScript library 144 and web mapping 147 6.1 Where am I? : A (brief) geographic location primer 149 6.2 Building a geolocation application 153 Basic application setup 154 Using the Bing Maps JavaScript API 157

xii CONTENTS 6.3 Using the Geolocation API 159 API functions for interacting with device location services 161 Plotting a point on a map 163 Integrating geolocation and a map 165 Navigating the map using geolocation data 167 6.4 Building a service to find address information 171 Modeling a point on the Earth in.net 171 Displaying routes between coordinates 174 6.5 Summary 178 6.6 Complete code listings 178 7 Web 8 Websockets workers and drag and drop 185 7.1 Getting started: Building an app that integrates Drag and Drop and Web Workers 187 7.2 Implementing drag and drop in JavaScript 190 The HTML5 Drag-and-Drop API 191 Using the datatransfer object to pass data with drag-and-drop events 193 Building the object to transfer data during drag and drop 194 7.3 HTML5 Web Workers 198 The basics: sending work to another thread 199 Integrating Web Workers into a JavaScript library 203 7.4 Summary 208 7.5 The complete code listings 208 214 8.1 HTTP and TCP a quick primer 216 An HTTP overview 216 TCP communications in a nutshell 217 8.2 Building a Websockets chat application 219 Separating interface logic from Websockets communications 222 Implementing Websockets in JavaScript 224 Opening a Websockets server connection 227 Sending messages 230 Receiving messages 231 8.3 Using Node.js as a TCP server 234 8.4 Summary 241 8.5 The complete code listings 241

CONTENTS xiii 9 Local 10 storage and state management 248 9.1 A LocalStorage example application 249 9.2 Structuring a JavaScript library to maintain state 253 Creating an application outline that supports local storage of objects 253 Building UI elements that can be stored locally 255 9.3 Using the LocalStorage API 257 Adding and removing items to and from LocalStorage the not-so-easy way 257 Adding and removing items the easy way 258 Moving data from LocalStorage to the page 259 Deleting items from LocalStorage 260 Clearing all items from LocalStorage 260 Using the LocalStorage storage event to detect changes 261 9.4 Adding UI elements to complete the application 262 9.5 Other uses for LocalStorage 264 Using LocalStorage as a proxy for server data 264 Using LocalStorage to save images 266 9.6 Summary 267 9.7 The complete code listings 267 Offline web applications 273 10.1 Building an offline HTML5 application 274 Creating the basic site structure 277 Creating the offline JavaScript library 279 10.2 The manifest file 280 Adding the application manifest to the sample project 281 Exploring manifest sections 281 10.3 Offline feature detection and event binding 285 10.4 The ApplicationCache object 287 10.5 Adding state management and displaying connected status 290 10.6 Building the server side of an offline application 295 10.7 Summary 300 10.8 The complete code listings 300 appendix A A JavaScript overview 307 appendix B Using ASP.NET MVC 346 appendix C Installing IIS Express 7.5 372 index 377