Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.

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

1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
Multiple Tiers in Action
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
The Document Object Model (DOM) & Asynchronous Javascript And XML (AJAX) : an introduction UFCEKG-20-2 : Data, Schemas and Applications.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
AJAX and Java ISYS 350. AJAX Asynchronous JavaScript and XML: – Related technologies: JavaScript, Document Object Model, XML, server-side script such.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
JavaScript & DOM Client-side scripting. JavaScript JavaScript is a tool to automate client side (which is implemented using HTML so far) JavaSript syntax.
Lecture 11 – DOM Scripting SFDV3011 – Advanced Web Development Reference: 1.
CSS/Photoshop Layouts – Quiz #7 Lecture Code:
D2L Notes Be sure to submit your link in the dropbox provided on D2L You can just upload an empty text file if a file upload is required Do not use D2L.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Matrix Mapping Tool Sam Gross Internship at Virtual Technology Corporation.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
OWL Jan How Websites Work. “The Internet” vs. “The Web”?
J.Holvikivi 1 Ajax & scripts Jaana Holvikivi Metropolia.
Session I Chapter 1 - Introduction to Web Development
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
IT WEB TECHNOLOGY Prepared by, K.ABINAYA Lect/IT.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
JavaScript & Introduction to AJAX
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Overview Web Technologies Computing Science Thompson Rivers University.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
DHTML.
Web Programming Language
Web Technologies Computing Science Thompson Rivers University
Javascript and Dynamic Web Pages: Client Side Processing
JavaScript and Ajax (Ajax Tutorial)
Unit 4 Representing Web Data: XML
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
AJAX and REST.
AJAX.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Introduction to Internet Programming
Chapter 7 Representing Web Data: XML
CMP Creating Your Personal and Small Business Web Sites
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
ISC440: Web Programming 2 AJAX
Web Programming Language
Secure Web Programming
Introduction to World Wide Web
CIS 133 mashup Javascript, jQuery and XML
AJAX CS-422 Dick Steflik.
DR. JOHN ABRAHAM PROFESSOR UTPA
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
Creating dynamic/interactive web pages
AJAX By Prof. B.A.Khivsara
Software Engineering for Internet Applications
Presentation transcript:

Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT

Course contents  HTML, HTML5  CSS, CSS2, CSS3  Javascript, JQuery  Responsive Web Design  Being prepared for multiple device types Jaana Holvikivi

A sample HTML document This is a sample HTML document HTML: Basic structure

A sample HTML document HTML document This is a sample HTML document Created by JHH: 2013

HTML – element markup link: Search engine Start, close element space attribute="value" image: empty element Space stripped (breaks, tabs, enter)

7.6 Tables: Symmetrical structure!! cell1 cell 2 1

J.Holvikivi Scripts and styles on an HTML page HTML STYLE HEAD BODY Javascript SCRIPT STYLEsheet Javascript file

Page requests on the Web Internet User workstation Browser: HTML, scripts Database server HTTP request Server HTML pages Program Server CGI HTTP: HTML pages PHP JavaASP SQL Oracle

Page requests: XMLHTTPRequest User workstation Browser: Capture event/ Update page Database server XMLHTTPRequest (asynchronous) Server Application (PHP, Java, XSLT, ASP): Request readyState response SQL XML Ajax engine: Create server Request Send Monitor status Get response Process returned data Returned data

Javascript and document structure

EVTEK J.Holvikivi11 Javascript  Javascript is always downloaded from the server to the client  Either as a file reference  Or embedded in HTML  Javascript is executed on client side.  Less load on server  Example: checks on form input (numeric fields, dates, required fields)  Javascript understands the structure of the HTML page (document); DOM

J.Holvikivi12 HTML document  Javascript can recognize the tree structure This is a test page Below is a table... row 1 cell 1 row 1 cell 2 row 2 cell 1 row 2 cell 2

J.Holvikivi13 Tree of the page ’This is a test page’ ’Below is a table’ data datadata

J.Holvikivi14 Document Object Model (DOM)  Used by many programming languages (php, Java, C#, C++, Javascript…)  and understood by browsers (Firefox, IE, Chrome, Safari)  XML -document is a collection of nodes that make a hierarchical tree structure  The hierarchy is used in navigating the tree to locate information  Inefficient use of memory: the tree structure is created in the memory  DOM enables adding, moving, deleting and changing of nodes

J.Holvikivi15 Document tree Ancestor Parent / ancestor SiblingNode Child /descendantAttribute Descendant Namespace

J.Holvikivi16 Processing of the tree  Start with the root node ( document-object)  Element properties  firstChild  lastChild  nextSibling  parentNode  Methods to navigate the tree in Javascript  getElementByID(id)  getElementsByName(name)  getElementsByTagName(name)  getAttribute(name)