4.3. Code animations by using JavaScript. 4.4. Access data access by using JavaScript. Creating Animations, Working with Graphics, and Accessing Data.

Slides:



Advertisements
Similar presentations
Copyright © Steven W. Johnson
Advertisements

Introduction to HTML5 Programming donghao. HTML5 is the New HTML Standard New Elements, Attributes. Full CSS3 Support Video and Audio 2D/3D Graphics Local.
Dodick Zulaimi Sudirman Lecture 12 Introduction to AJAX Pengantar Teknologi Internet Introduction to Internet Technology.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
A closer look Dynamic Webpages Jessica Meyerson March 1, 2011.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
Naveen Prabhu Quadwave Consulting Pvt.Ltd.. Agenda  HTML 5 – The Standards  Browsers and HTML5 support  HTML5 Learnability  Perspectives of Web Designer,
Director of Computer Center, DaYeh University Ku-Yaw Chang.
@ 翁玉礼 HTML5 Discuss. Compare to html4 Canvas Video and audio Local offline store New form control.
JavaScript & jQuery the missing manual Chapter 11
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
Windows Store apps with HTML + Facebook integration
Writing various AJAX forms in Drupal 7 1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
HTML5 for Mobile Andrew Kinai. HTML vs HTML5 HTML:A language that describes documents' formatting and content, which is basically composed of static text.
HTML5. HTML5’s overall theme The browser as a rich application platform rich, cross-device user interfaces offline operation capability hardware access.
Introduction What is it? What does this mean? Features Animated Logo Html5 Flash Canvas Tunneler Html5 Animation Html5 Canvas Caching.
JavaScript, Fourth Edition
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
CSS 2D Transforms CSS 3D Transforms CSS Animations CSS Backgrounds & Borders CSS Color CSS Flexbox CSS Fonts CSS Grid CSS Hyphenation CSS Image Values.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
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.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
Types of Spatial Data Sites Data portals: Find and download data –Humboldt County, National Atlas “Atlases”: General information –GoogleMaps, MapQuest.
INNOV-7: Building a Richer UI for the Browser Chris Skeldon Senior Solution Consultant.
Ajax for Dynamic Web Development Gregory McChesney.
Chapter 16: Ajax-Enabled Rich Internet Applications with XML and JSON TP2543 Web Programming Mohammad Faidzul Nasrudin.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
AJAX James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
Creating Animations, Working with Graphics, and Accessing Data Lesson 9.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
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.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
Live Project Based Industrial Training SSDN Technologies Pvt. Ltd. Call Us: /
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.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
04 | Code by Using JavaScript Christopher Harrison | Content Developer, Microsoft Rachel Jones| Microsoft Certified Trainer, SourceDev.
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.
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
Tutorial 10 Programming with JavaScript
CS 371 Web Application Programming
Intro to JavaScript CS 1150 Spring 2017.
AJAX.
What web developers need to know when building Metro style apps
Building high performance Metro style apps using HTML5
Building offline access in Metro style apps and websites using HTML5
The Application Lifecycle
JavaScript & jQuery AJAX.
Types of Spatial Data Sites
Anatomy of HTML5 sites and Metro style apps using HTML5
MIS JavaScript and API Workshop (Part 3)
Web Design and Development
Types of Spatial Data Sites
Creating User Interfaces
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Introduction to JavaScript
Presentation transcript:

4.3. Code animations by using JavaScript Access data access by using JavaScript. Creating Animations, Working with Graphics, and Accessing Data

Agenda Animations Canvas + JavaScript Transmitting Data Loading and Saving Files Validating Form Input Cookies

Animation with JavaScript

Creating Animations

Manipulating the Canvas Recall that the canvas element is used to create a container for graphics With JavaScript, you can manipulate the container and draw graphics dynamically To draw a canvas object, you use the getElementById() function to access the canvas and the canvas.getContext to create the object

Canvas Demo Your browser does not support the canvas element. var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="Blue"; ctx.fillRect(5,5,150,75); Example: Cut The Rope

Sending and Receiving Data CLIENT

The XMLHttpRequest API function load(url, data, callback) { var xhr = new XMLHttpRequest(); xhr.open("GET", url, true); xhr.onload = function() { callback(xhr.responseText); } xhr.send(data); } JavaScript

Parsing

JavaScript Object Notation (JSON)

Validating Uploaded Files VS.

AppCache for Offline Files Data can be stored locally when a user is offline using the Application Cache, or AppCache AppCache stores resources, such as HTML, CSS, and JavaScript files, locally on a user’s machine As a result, users can access Web pages and apps offline The cache manifest file dictates which type of information is stored offline

Validating User Input First Name Last Name Address Jane Doe Please provide a valid address.

Cookies

Agenda Animations Canvas + JavaScript Transmitting Data Loading and Saving Files Validating Form Input Cookies

© 2015 Microsoft Corporation. All rights reserved.