MI1004 Script programming and internet applications

Similar documents
Introduction to HTML5

CP215 Application Design

HTML 5 Form Processing

Form Processing in PHP

NETB 329 Lecture 13 Python CGI Programming

Unit Notes. ICAWEB411A Produce basic client-side script for dynamic web pages Topic 1 Introduction to JavaScript

jmaki Overview Sang Shin Java Technology Architect Sun Microsystems, Inc.

Date Picker Haim Michael

outline Web documents: HTML, forms concepts: WWW, URI/URL concepts: hypertext László Kálmán 1 Csaba Oravecz 1 Péter Szigetvári 2

A designers guide to creating & editing templates in EzPz

Last &me: Javascript (forms and func&ons)

Implementing a chat button on TECHNICAL PAPER

PRODUCT DOCUMENTATION. Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1

LAMP Apps. Overview. Learning Outcomes: At the completion of the lab you should be able to:

UR what? ! URI: Uniform Resource Identifier. " Uniquely identifies a data entity " Obeys a specific syntax " schemename:specificstuff

JavaScript: Introduction, Types

PHP intro. (with some Python references) MVC (Model View controller)

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

HTML Overview. With an emphasis on XHTML

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

Static Webpage Development

Digital Asset Management 2. Introduction to Digital Media Format

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

Mul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 06 (Haup-ach)

JavaScript (5A) JavaScript

CSCI 1100L: Topics in Computing Spring 2018 Web Page Project 50 points

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

Markup Language. Made up of elements Elements create a document tree

Course Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP

outline Web documents: HTML, forms concepts: WWW, URI/URL concepts: hypertext László Kálmán 1 Csaba Oravecz 1 Péter Szigetvári 2

Web Publishing Basics I

Head First HTML5 Programming

CS144 Notes: Web Standards

Building Desktop RIAs with PHP, HTML & Javascript in AIR. Ed Finkler, ZendCon08, September 17, 2008 funkatron.com /

Introduction to Web Technologies

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

HTML. HTML Evolution

Using htmlarea & a Database to Maintain Content on a Website

Chapter 2 How to structure a web application with the MVC pattern

CPSC 481: CREATIVE INQUIRY TO WSBF

How to Make a Contact Us PAGE in Dreamweaver

New Media Production HTML5

Scripting. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents

PHP with MySQL: What you need to know Chapter 3. This section is on using PHP script tags appropriately in your PHP program.

Course Information. Instructor Todd Sproull Jolley 536 Office Hours by Appointment

1.1 Text Alternatives: Provide text alternatives for any non-text content. 3.1 Readable: Make text content readable and understandable.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Produced by. App Development & Modeling. BSc in Applied Computing. Eamonn de Leastar

PYTHON CGI PROGRAMMING

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Copyright 2011 Sakun Sharma

Introduction to Web Development

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Basics of Web Development

Part 3: Dynamic Data: Querying the Database

Javascript, Java, Flash, Silverlight, HTML5 (animation, audio/video, ) Ajax (asynchronous Javascript and XML)

django-sekizai Documentation

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Scripting for Multimedia LECTURE 5: INTRODUCING CSS3

Notes General. IS 651: Distributed Systems 1

Lesson 12: JavaScript and AJAX

Web Development and HTML. Shan-Hung Wu CS, NTHU

Course Topics. IT360: Applied Database Systems. Introduction to PHP

Document Object Model. Overview

Task 1: JavaScript Video Event Handlers

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

CSC309 Tutorial CSS & XHTML

Vebra Search Integration Guide

Course Information. Todd Sproull Jolley 536 Office Hours by Appointment. Monday and Wednesday 10 11:30 AM

Hyperlinks, Tables, Forms and Frameworks

Chapter 1. Introduction to web development and PHP. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C1

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Web Security IV: Cross-Site Attacks

cwhois Manual Copyright Vibralogix. All rights reserved.

SocialMiner Configuration

Pop-up. File format/ size: Must provide (.gif or.jpg) still image - max. 75KB for Mobile - max. 400KB for Tablet

Executing Simple Queries

CITS1231 Web Technologies. PHP s, Cookies and Session Control

CPET 499/ITC 250 Web Systems

University College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,

Lab 4 CSS CISC1600, Spring 2012

Chapter 4 Sending Data to Your Application

Chapter 10: Understanding the Standards

DC71 INTERNET APPLICATIONS DEC 2014

Quick.JS Documentation

Introduction to using HTML to design webpages

c122jan2714.notebook January 27, 2014

JavaScript Performance

Shane Gellerman 10/17/11 LIS488 Assignment 3

ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 03 Minor Subject

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 07 Minor Subject

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Style-Guidelines. Release 0.1

HTML and CSS MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

CSS & Troubleshooting IE6

Transcription:

MI1004 Script programming and internet applications

Course content and details Learn > Course information > Course plan Learning goals, grades and content on a brief level Learn > Course material Study guide content, course literature and planning on a detailed level Presentations, docs, various links and good resources. Most is available for free on the internet Learn > Tasks Labs and examination Languages and some technologies we will use/learn HTML, CSS, JavaScript, PHP, Python, SQL, MySQL, SQLite, JSON,. Questions?

2004 whatwg.org 2007 XHTML 2 XHTML 2 shutdown. CSS 3 HTML 5.0 standard oct. 2014 HTML 5.2 standard dec. 2017

The future of the web is HTML5 Historically we have used some of these tools to achive rich content on the web Adobe Flash (dropped 2020?) Microsoft Silverlight (dropped) Oracle JavaFX (?) Microsoft Edge and Windows 10 have good HTML5 support Metro UI browser variants are using HTML5 You can create both desktop and UI apps for Windows 10 in addition to web sites/apps This includes rich content mobile (hybrid) web applications

Windows 10 and HTML5 XAML (Extensible Application Markup Language) is a declarative markup language which defines the view/design of an application As applied to the.net Framework programming model, XAML simplifies creating a UI for a.net Framework applications together with Windows Presentation Foundation (WPF) WinRT An object oriented replacement for Win32

Your first web page A simple example of a HTML web page and the result <!doctype html> <html> <head> <title>my first web page</title> </head> <body> This is my first web page. <br /> <b><i>this text is in bold italic!</i></b> </body> </html>

HTML 4.x vs. HTML 5.x HTML5 is a superset of HTML 4.01 (which means most of HTML4 is still supported in HTML5) Step 1 doctype ( old doctype below is an example, several exist) Old: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> New: (which never is going to change): <!doctype html> Step 2 content meta tag in <head> element Old: <meta http-equiv="content-type" content="text/html; charset=utf-8"> New: <meta charset="utf-8"> (utf-8 is the standard or use "iso-8859-1") Step 3 link tag in <head> element Old: <link type="text/css" rel="stylesheet" href="lounge.css"> New: <link rel="stylesheet" href="lounge.css"> Step 4 script tag (JavaScript is the standard) Old: <script type="text/javascript" src="my-file.js"></script> New: <script src="my-file.js"></script> <script> var yourock = true; For inline script code (within the HTML </script> file itself, for example inside the body tag)

HTML4.x vs. HTML5 Save the html-file with the given character encoding/charset in your editor! In order to get rid of special: å = å ä = ä ö = ö The rel="stylesheet "attribute specifies the relationship between the current document and the linked document <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <title>mi1004</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link type="text/css" rel="stylesheet" href="lounge.css"> <script type="text/javascript" src="lounge.js"></script> </head> <body> <h1>welcome to MI1004!</h1> <p> <img src="drinks.jpg" alt="drinks"> </p> <p> Join us any evening for refreshing <a href="elixirs.html">elixirs</a>, conversation and maybe a game or two of Tap Tap Revolution. Wireless access is always provided; BYOWS (Bring Your Own Web Server). </p> <script>hello();</script> </body> </html> <!doctype html> <html> <head> <title>mi1004</title> <meta charset="utf-8"> <link rel="stylesheet" href="lounge.css"> <script src="lounge.js"></script> </head> <body> <h1>welcome to MI1004!</h1> <p> <img src="drinks.jpg" alt="drinks"> </p> <p> Join us any evening for refreshing <a href="elixirs.html">elixirs</a>, conversation and maybe a game or two of Tap Tap Revolution. Wireless access is always provided; BYOWS (Bring Your Own Web Server). </p> <script>hello();</script> </body> </html>

Result // lounge.js content function hello() { document.write("hello World!"); } // lounge.css content h1 { color: blue; }

PHP and Python Example form (.html file) with server side (.php and.py) script files <html><body> <form method="post" action="pythonhello.py"> <!-- action="pythonhello.py" or action="phphello.php" --> <label>first Name: </label> <input type="text" name="first_name" size="40" /> <br /> <label>last Name: </label> <input type="text" name="last_name" size="40" /> <br /> <label>send: </label> <input type="submit" value="submit" /> </form> </body></html> <?php #!"\dev\python36\python.exe" # Get data from fields # Import modules for CGI handling if(isset($_post["first_name"])) import cgi, cgitb $fname = $_POST["first_name"]; # Create instance of FieldStorage form = cgi.fieldstorage() else $fname = ''; if(isset($_post["last_name"])) # Get data from fields first_name = form.getvalue('first_name') $sname = $_POST["last_name"]; last_name = form.getvalue('last_name') $sname = ''; print("content-type: text/html;charset=utf-8;\r\n") else $person = $fname. " ". $sname; print() print "<html><body>"; print("<html><body>") print "Hello ". $person. ", how are you today?"; print("<h2>hello %s %s</h2>" % (first_name, last_name)) print "</body></html>"; print("</body></html>")?>

Artifical Intelligence (AI) At end of course perhaps be able to use something quite useful? Perform some image classification

Transfer Learning By changing the very last part in the CNN (Convolutional Neural Network), but continue to use the major first part, one can classify new images with very good accuracy https://www.tensorflow.org/ https://playground.tensorflow.org/ https://www.svtplay.se/video/19065271/ vetenskapens-varld/vetenskapens-varldde-smarta-maskinernas-tid http://users.du.se/~hjo/cs/common/video/