CHAPTER 3&4 ZHONGWEI LI TouchDevelop Book. What are we covering Review of Chapter 1-2 TouchDevelop as a scripting language: actions, events, table and.

Slides:



Advertisements
Similar presentations
Touchdevelop api api: web downloading and uploading Disclaimer: This document is provided as-is. Information and views expressed in this document, including.
Advertisements

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?
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.
TouchDevelop Chapter 5-7 Chapter 5 Audio Chapter 6 Camera, Graphics and Video Chapter 7 Sensors Mengfei Ren.
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
. Website and file organization. How websites work.
1 Chapter 12 Working With Access 2000 on the Internet.
L. Grewe. YQL – what is it Yahoo! Query Language.
Using Visual Basic 6.0 to Create Web-Based Database Applications
HTML Form Processing Learning Web Design – Chapter 9, pp Squirrel Book – Chapter 11, pp
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
1 Static Web Pages Websites on Servers (The Big Picture) –Apache Tomcat can support static web pages –Primarily intended to support servlets and JSP –Some.
Python and Web Programming
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
What Is A Web Page? An Introduction to the Internet.
How the World Wide Web Works
The Internet & The World Wide Web Notes
Programming on the Go Chapters 1and 2 Siddharth Patel
UNDERSTANDING WEB AND WEB PROJECT PLANNING AND DESIGNING AND EFFECTIVE WEBSITE Garni Dadaian.
Introduction to Nvu Jing Fu. What is nVu? Free web design and development tool WYSIWYG (/wiziwig/) software Other similar tools: Dreamweaver, Googlepages.
Multimedia Authoring Tools Lecture 13
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.
CS 1704 Introduction to Data Structures and Software Engineering.
1 TouchDevelop Chapter 8-10 Presenter: Jing Xu. 2 Outline Interactions Game Board Tiles and Printing.
JAVASCRIPT HOW TO PROGRAM -2 DR. JOHN P. ABRAHAM UTPA.
Computer Concepts 2014 Chapter 7 The Web and .
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
Tech Lab II FDW 2012 Monday, 16 July Outline Internal Website – Leave – Math Database Course Websites – AMS (to be covered later) – LMS (includes.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
JavaScript & jQuery the missing manual Chapter 11
CS378 - Mobile Computing Web - WebView and Web Services.
Server-side Scripting Powering the webs favourite services.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
2008 Welcome to the Springer Customized Catalog – An Extension of the Bookseller Search.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
The Internet and the World Wide Web. The Internet A Network is a collection of computers and devices that are connected together. The Internet is a worldwide.
MAKEOVER WEB EDITION MCPSS Web Site – Teacher Page Extreme.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
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.
Website Development with PHP and MySQL Saving Data.
Chapter 8 Browsing and Searching the Web. 2Practical PC 5 th Edition Chapter 8 Getting Started In this Chapter, you will learn: − What is a Web page −
Moodle with Style Integrating new technologies to empower learning and transform leadership.
XP Practical PC, 3e Chapter 8 1 Browsing and Searching the Web.
I/o inputs and outputs Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet.
XP Tutorial 8 Adding Interactivity with ActionScript.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
HTLM Forms CS3505. Form Handling in Browser html User Files out form WEbBROWSErWEbBROWSEr User read response submit Get URL?input html Get file html script.
Web Services from 10,000 feet Part I Tom Perkins NTPCUG CertSIG XML Web Services.
Facebook for Beginners One Session Class. What will you learn today? What can you do on Facebook? Creating a profile Privacy Connecting with friends Sending.
The Basics of Managing Your Department Website March 8, 2012.
The Internet and World Wide Web Sullivan University Library.
Welcome to What is weebly.com? How does weebly.com work? What can I do with a weebly website? Contact Information: Marissa Sampson
Apps Find the latest version of this document at
COMP 143 Web Development with Adobe Dreamweaver CC.
Schoolwires How to modify your classroom webpage.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Section 10.1 Define scripting
Android Application Web 1.
Chapter 8 Browsing and Searching the Web
z/Ware 2.0 Technical Overview
Browsing and Searching the Web
Introducing the World Wide Web
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
PHP / MySQL Introduction
Network Controllable MP3 Player
TO EDIT BUTTON 1 1 Locate the page where the button is located
Web Forms.
Presentation transcript:

CHAPTER 3&4 ZHONGWEI LI TouchDevelop Book

What are we covering Review of Chapter 1-2 TouchDevelop as a scripting language: actions, events, table and record types, global status and library references The Wall: using screen Output & Input Tap events Popping, Pushing | Title & Subtitle | else The Web: handling web-based resources Working with URLs Download and Upload files Structured data REST and web request

Wall: Output Simple Types Demo-1  Simple types on Wall Wall is the screen and accessible to any datatype  → post to wall Directions of output: set reverse & textbox  wall → set reversed(true)  wall → create text box(…) Wall Script

Wall: Output Composite Value Demo-2  Formatted CV on Wall Display of composite value produces a formatted result  Collections → list of items  Each item formatted in appropriate manner Wall Display of Composite Value: (0,0,0) 2/6/ :00 AM [123,456,-789] …

Wall: Output Other Types Media values  Table 3-1: Picture, Board, Song, Sound, Picture Album, Song Album Social values  Table 3-2: Appointment, Contact, Link, Location, Message, Place Home network values  Table 3-3: Media Player, Media Server, Printer Web values  Table 3-4: Web Request, Json Object, Xml Object

Wall: Input of Values from Touchscreen Wall API provides methods that prompt user to enter/pick value  Table 3-5: ask boolean/number/string  Table 3-5(cont): pick date/string/time Example of “prompting for input”  Demo-3

Board Wall: Update Contents Board: Demo-4  Pictures, massages and shapes as sprites Alter the value of currently posted items on Wall  wall → clear Use text box to alter text.  wall → create text box(…)  tb → set text(…) Use board to update sophisticated display  board → update on wall Wall Sprites Scripts: … board := media → create board(200) …

Wall: Tap Events Tap Wall events  Nearly one tap event for every datatype (that’s displayed on screen)  The tapped item is passed as a parameter to the event  Demo-5 Tap board events  Control over the displayed values (to be tapped)  Define variable with Board: Sprite/Sprite Set type in data section causes new event types available(Demo-6)  For sprites, even names has tap/swipe/drag(Demo-6)  More events associated with board(e.g. tap anywhere else)

Wall: Something else Pushing and Popping pages  Stack of pages (each page as an instance of the wall) Titles and Subtitles  Display titles on top of screen (Demo-7) Wall buttons  Button icons may be displayed as page buttons(bottom)  Buttons can trigger events(Demo-8)  Methods of buttons in Table 3-8 On-demand creation of output  empty space event

Web: Working with URLs Encoding & Decoding  Convert: Opening web browser at a specific webpage  web → browse(“url”)  Demo-9 When parsing special characters in a URL  web → url encode()  web → url decode() …abc%25, #?......abc%252 5%2c%23 %3f... encod e decod e

Web: Create and Use Links Use wall with web links  Demo-10 Use of Link datatype  Save link to people  Save link to web resources Wall can be used to hold links to websites  Table 4-2  Post (link) to the wall Check internet connections  web → is connected  web → connection type  web → connection name Wall Web Rerouces.txt,.png… Links to URL

Web: Download and Upload TouchDevelop API provides methods for accessing different kinds of web resources  Table 4-3 Download files (Demo-11)  Text or HTML  Picture  Sounds and music

Web: Downloading Info in JSON format Downloading structured data  Information extracting  web → download()  Special characters  web → html decode/encode Download JSON  web → download json()  Flickr & Twitter Figure 4-6 { "weather": { "curren_weather": [ { "humidity": "87", "pressure": "1005", "temp": "6", "temp_unit": "c”, "weather_code": "1", "weather_text": "Partly cloudy", "wind": [ {"dir": "ENE", "speed": "4", "wind_unit": "kph" } ] } ], "forecast": [ … JSON format: Weather2Weather2  Demo-12

6 c 4 ENE kph … 6 c 4 ENE kph … Web: Downloading Info in XML format XML format: Weather2  Demo-13 Processes  1. Fetch data as String  web → download()  2. Parse the string as XML  web → xml( ) Not easy to figure out the XML data?  Go over DTD Figure 4-8

REST Guidelines and Web Requests HTTP GET and POST requests  Access of RESTful web services HTTP PUT and Delete requests  Not supported by WP platform, yet there’re alternative choices provided by many RESTful web services API method web → create to construct HTTP requests  The request is an instance of Web Request type  The result comes back as an instance of Web Response type  Table 4-4, 4-5

Summary Wall Output & Input  Post & ask different types Updating Wall Contents  Text box & board Wall Events and Others  Tap wall events & Tap board events  Pushing & Popping pages  Title & Subtitles  Wall buttons URLs and Webpages  Web-based links & wall  Check internet connection Down(up)loading Files  Download text, pics, media contents  Uploading strings & pics Structured Data  Download JSON format  Download XML format REST and Web Request

THANKS QUESTIONS?