Web hosting in app Creating a Windows Store app with web assets.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
CHARMS, PICKERS, CONTRACTS WINDOWS 8 AS AN APP INTEGRATION
WinJS Priorities max: 15 high: 13 aboveNormal: 9 normal: 0 belowNormal: -9 idle: -13 min: -15.
Chapter 12 Creating and Using Templates. If you have already created and designed a page you like, you can use the layout and design for other pages in.
The Web Warrior Guide to Web Design Technologies
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.
Explore the Dreamweaver Workspace View a Web page and use Help Plan and Define a Web site Add a Folder and Pages, and set the Home page Create and View.
® IBM Software Group © 2006 IBM Corporation JSF Menu Component How to create and use JSF Menu components to add custom static and programmatic (dynamic)
Windows 8 Store Application Development Using HTML5 and JavaScript Judy McNeil BSCS MCAD MCSD MCTS MCTIP MCT.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Getting Started with Dreamweaver
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
Christopher Paolini Computational Science Research Center College of Engineering San Diego State University Computational Science 670 Fall 2009 Monday.
Server-side Scripting Powering the webs favourite services.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Online Shopping JavaScript project for CS 175 JavaScript for Web Development, Spring 2009 By Sita Akella.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
Lecture 11 – DOM Scripting SFDV3011 – Advanced Web Development Reference: 1.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 27 - Phone Book Application Introducing Multimedia.
Online Service 1. Authorization Request (Start URL) 2. Login page 3. Credentials 4. Authorization page 5. User decision 6. Authorization.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Using Client-Side Scripts to Enhance Web Applications 1.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
To access our web services, go to……. Click on Customer Login.
D3D11CreateDevice( /* … */ &device, // Returns the Direct3D device created. &m_featureLevel, // Returns feature level of the device. &context.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
Evaluating & Maintaining a Site Domain 6. Conduct Technical Tests Dreamweaver provides many tools to assist in finalizing and testing your website for.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
ECA 225 Applied Interactive Programming ECA 225 Applied Online Programming control structures, events, objects.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Users are moving towards web applications Content on the web is more personal & meaningful Development on the web is easier than the OS.
Web Site Development - Process of planning and creating a website.
Understanding JavaScript and Coding Essentials Lesson 8.
Higher Computing Science Coding the Web: HTML, JavaScript, PHP and MySQL.
Game On! With HTML5. AUTHD on oreilly.com How a Game Works Time Passed Frame 1 Frame 2 Frame 3Frame 4.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
© 2010 Delmar, Cengage Learning Chapter 11 Creating and Using Templates.
 ASP.NET provides an event based programming model that simplifies web programming  All GUI applications are incomplete without enabling actions  These.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
APLIKACIJE KOJE SU IZVAN SEBE Domagoj Pavlešić, dizzy.hr.
Developing Windows 8 Style Application With HTML and JavaScript Lino Tadros | Falafel Software.
Vaughan Knight App Ecosystem Lead Microsoft FileOpenPicke r, FileSavePicker Read/Write access to SD card Appointments /Calendar API enhancements Appointments.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Software Overview How to… Review Video and Data  Review the Journal Review the Journal  Simple Search Simple Search  Advanced Search Advanced Search.
Getting Started with Dreamweaver
Developing Windows 8 Style Application With HTML and JavaScript
Computing with C# and the .NET Framework
Objectives Create a folder in Google Drive.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Topics Graphical User Interfaces Using the tkinter Module
Delegates and Events 14: Delegates and Events
DHTML Javascript Internet Technology.
C# Event Processing Model
Integrating JavaScript and HTML
DHTML Javascript Internet Technology.
Tutorial 6 Creating Dynamic Pages
The lifetime of XAML text: from input to display through printing
Getting Started with Dreamweaver
4/9/ | Contracts © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
RMA User Guide.
MIS 3200 – Unit 6.1 Moving between pages by redirecting
This is the WP hosted website
JavaScript: BOM and DOM CS Programming Languages for Web Applications
Presentation transcript:

Web hosting in app Creating a Windows Store app with web assets

Commands Search Navigation Layout (vertical)

Declaring the iFrame in XAML Updating the source dynamically webViewHost.Source = new Uri(" Invoking script on the web page webViewHost.InvokeScript("CountAndListen", null);

Commands Search Navigation Layout (horizontal)

<div id="listview1" data-win-control="WinJS.UI.ListView" data-win-options="{ selectionMode: 'none', tapBehavior: 'none', swipeBehavior: 'none', layout: { type: WinJS.UI.GridLayout } }">

// wait for the itemPromise to complete to access the data return itemPromise.then(function (item) { // root element for the item var element = document.createElement("div"); element.className = "itemTempl"; // using innerHTML is usually faster than creating the DOM with createElement & appendChild element.innerHTML = " " + item.data.title + " "; return element;

… // specifies a promise that will be completed when rendering is complete // itemPromise will complete when the data is available renderComplete: itemPromise.then(function (item) { // mutate the element to include the data if (!label) { label = element.querySelector(".content"); img = element.querySelector("img"); } label.innerText = item.data.title; img.src = item.data.thumbnail; img.style.visibility = "visible"; …

Application Runtime broker Web Auth Host

The broker takes down the dialog box, clears any persisted cookies created by the host from the app container, and returns the protocol data back to the application. If a match is found, the host ends the navigation and signals the broker. As the user interacts with the online provider website by clicking links or submitting information, the host checks each URI for a match with a callback URI provided by the app before navigating to it. The Web Auth host navigates to the request URI. (login page). The broker starts the Web Auth Host and attaches it to the system modal dialog The broker creates a system modal dialog and selects a separate, dedicated app container An app invokes the Web AuthBroker async providing website and redirect URI

Push Notification Windows 8 (4) (5) (6) (1) (3) (2)

Sharing is a powerful way to increase engagement and drive user acquisition.

Sharing across Applications DataPackage lives in Source application On installation, registers as Share Target through manifest declaration Source App Share Broker Target App

Sharing details - source // initializing code DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView(); dataTransferManager.DataRequested += new TypedEventHandler (this.DataRequested); // registered function private void DataRequested(DataTransferManager sender, DataRequestedEventArgs e) { DataRequest request = e.Request; { DataPackage requestData = String; request.Properties.Title = String; request.Properties.Description = String; // The description is optional. request.SetUri(Uri); } }

Sharing details - target … if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.shareTarget) { // Code to handle activation goes here. } … ShareOperation shareOperation = (ShareOperation)e.Parameter; await Task.Factory.StartNew(async () => { // Retrieve the data package properties. String sharedDataTitle = shareOperation.Data.Properties.Title; String sharedDataDescription = shareOperation.Data.Properties.Description; String sharedThumbnailStreamRef = shareOperation.Data.Properties.Thumbnail; … }

Printing

… // Add an event handler, which creates preview pages. printDocument.Paginate += CreatePrintPreviewPages; // Add an event handler, which provides a specified preview page. printDocument.GetPreviewPage += GetPrintPreviewPage; // Add an event handler, which provides all final print pages. printDocument.AddPages += AddPrintPages; // Create a PrintManager and add a handler for printing initialization. PrintManager printMan = PrintManager.GetForCurrentView(); printMan.PrintTaskRequested += PrintTaskRequested;