WinJS Priorities max: 15 high: 13 aboveNormal: 9 normal: 0 belowNormal: -9 idle: -13 min: -15.

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

JQuery A Javascript Library Hard things made eas(ier) Norman White.
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
CST JavaScript Validating Form Data with JavaScript.
JQuery CS 268. What is jQuery? From their web site:
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
JS: DOM Form Form Object Form Object –The Form object represents an HTML form. –For each instance of a tag in an HTML document, a Form object is created.
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
Execution Environment for JavaScript " Java Script Window object represents the window in which the browser displays documents. " The Window object provides.
JavaScript II ECT 270 Robin Burke. Outline JavaScript review Processing Syntax Events and event handling Form validation.
Lecture 11 – DOM Scripting SFDV3011 – Advanced Web Development Reference: 1.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Web hosting in app Creating a Windows Store app with web assets.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
DHTML - Introduction Chapter Introduction to DHTML, the DOM, JS review.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
ForeCiteNote by Emma Nguyen, 11 th June Outline Overview Server side Client side  JavaScript classes.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
Unit 13 –JQuery Basics Instructor: Brent Presley.
Lesson 16. Practical Application 1 We can take advantage of JavaScript and the DOM, to set up a form so that the first text box of a form automatically.
1 Javascript CS , Spring What is Javascript ? Browser scripting language  Dynamic page creation  Interactive  Embedded into HTML pages.
Understanding JavaScript and Coding Essentials Lesson 8.
JavaScript II ECT 270 Robin Burke. Outline Functions Events and event handling Form validation.
Events Event Handling in JavaScript SoftUni Team Technical Trainers Software University
 objects in Client  What is Event?  Event Handlers  programming.
Introduction 1.HTML DOM events allow JavaScript to register different event handlers on elements in an HTML document. 2.Events are normally used in combination.
Game On! With HTML5. AUTHD on oreilly.com How a Game Works Time Passed Frame 1 Frame 2 Frame 3Frame 4.
Introduction to JQuery COGS 187A – Fall JQuery jQuery is a JavaScript library, and allows us to manipulate HTML and CSS after the page has been.
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Developing Windows 8 Style Application With HTML and JavaScript Lino Tadros | Falafel Software.
Tizen Web Application with TAU
THE DOM.
Developing Windows 8 Style Application With HTML and JavaScript
Build in Objects In JavaScript, almost "everything" is an object.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
JavaScript: Good Practices
Unleash the Power of jQuery
JavaScript Event Handling.
Section 17.1 Section 17.2 Add an audio file using HTML
Building high performance Metro style apps using HTML5
DHTML Javascript Internet Technology.
Cleveland Tech Consulting, LLC
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
DHTML Javascript Internet Technology.
Build polished collection and list apps in HTML5
Web Design and Development
Introduction to DHTML, the DOM, JS review
Events: Changed and Input
Code Topic 9 Standard JavaScript Events Laura Friedman
HTML and CSS Basics.
JavaScript Event Handling For Interaction and Casual Games
CHAPTER FOUR VARIABLES AND CONSTANTS
Web Programming and Design
Presentation transcript:

WinJS Priorities max: 15 high: 13 aboveNormal: 9 normal: 0 belowNormal: -9 idle: -13 min: -15

WinJS Scheduler – Code Example var S = WinJS.Utilities.Scheduler; // Example of a scheduling work at normal priority S.schedule(function () { // Scheduled code to execute }, S.Priority.normal); // Example of scheduling a data request at high priority S.schedule(function () { // Scheduled code to execute }, S.Priority.high, this, "Work item description");

Controls: Implementing Dispose var MyControl = WinJS.Class.define(function (element, options) { this.element = element; element.winControl = this; // Add win-disposable class to element WinJS.Utilities.addClass(this.element, "win-disposable"); this._disposed = false; }, { dispose: function () {//... } });

Controls: Implementing Dispose dispose: function () { if (this._disposed) { return; } this._disposed = true; // Call dispose on all children WinJS.Utilities.disposeSubTree(this.element); // Disconnect click handlers, resources, connections, etc. if (this._button && this._clickHandler) { this._button.removeEventListener("click", this._clickHandler, false); }

Apps: Calling Dispose // Responds to navigation by adding new pages to the DOM. _navigating: function (args) { // Dispose all controls in the view WinJS.Utilities.disposeSubTree(this._element); // Remove old content from the view this._element.removeChild(oldElement); oldElement.innerText = ""; // Add new content to the view this._element.appendChild(newElement); }

Loading and parsing of HTML, JS, CSS New host process Tile click Windows Runtime "activated" event Splash screen Ready for user Navigation App visible WinJS.UI.proces sAll App initialization Splash screen cross fade Get data Populate ListView Animate content App read to use

Splash screenApp visibleApp ready to use

Splash screen App visible App ready to use

Splash screen App visibleApp ready to use