Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

Java Script Session1 INTRODUCTION.
DT228/3 Web Development WWW and Client server model.
World Wide Web Basics Original version by Carolyn Watters (Dalhousie U. Computer Science)
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
How the web works: HTTP and CGI explained
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.
HTTP Presented By: Holly Mortinson Amy Drout Kyle Balmer & Matt Conklin.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
1 Web Search Interfaces. 2 Web Search Interface Web search engines of course need a web-based interface. Search page must accept a query string and submit.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Definitions, Definitions, Definitions Lead to Understanding.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
HTTP Overview Vijayan Sugumaran School of Business Administration Oakland University.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
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.
Computer Concepts 2014 Chapter 7 The Web and .
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
A Closer Look at HTTP HyperText Transfer Protocol.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
Introduction to Applets CS 3505 Client Side Scripting with applets.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
JavaScript - A Web Script Language Fred Durao
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
Web application architecture1 Based on Jim Conallen: Web Applications with UML.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
Chapter 4 Applets Cop Why Applets? WWW makes huge information available to anyone with web browser. Web server send web pages and images to your.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
WEB SERVER Mark Kimmet Shana Blair. The Project Web Server Application  Receives request for web pages or images from a client browser via the internet.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Fall 2000C.Watters1 World Wide Web and E-Commerce Internet and WWW Basics.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Tonga Institute of Higher Education IT 141: Information Systems
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 27 WWW and HTTP.
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Teaching slides Chapter 6.
CIS 133 mashup Javascript, jQuery and XML
Presentation transcript:

Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing

Jan 2001C.Watters2 Objectives  Examine how http makes the web work  Examine computing activities that can be done at the client (browser side)  Consider fat vs thin clients  Take a look at portals

Jan 2001C.Watters3 Client-Server Model (review)

Jan 2001C.Watters4 HTTP Connection 1. Client –makes an HTTP request for a web page –makes a TCP/IP connection 2. Server accepts request –sends page as HTTP 3. Client downloads page 4. Server breaks the connection Browser

Jan 2001C.Watters5 What does an HTTP request or response look like? Browser request = Header only Server response = Header + object file (generally) Header object file Plain text about datadata

Jan 2001C.Watters6 HTTP Request Header Example GET /catalog/ip/ip.htm HTTP 1.0 Accept: text/plain Accept: text/html Referer: User-Agent: Mozilla/2.0

Jan 2001C.Watters7 HTTP Response Example HTTP/ OK Server: NCSA/1.3 Mime_version: 1.0 Content_type: text/html Content_length: 2000 …… http version Response code explanation Response header Document body

Jan 2001C.Watters8 Client Side Processing HTML pages Javascript Applets Cookies

Jan 2001C.Watters9 Browser processes HTML  HTML - Hypertext Markup Language   display instructions (tags) and content are mixed together  browser interprets the display instructions and displays  National Gov

Jan 2001C.Watters10 Browser hello Hi.html Browser hello http html Parse html server

Jan 2001C.Watters11 Browser Functions Generate an HTTP request Accept an HTML file parse file contents – get a tag –process data –paint screen accept user events (scroll, click, etc)

Jan 2001C.Watters12 So Browser Needs to: Execute low level TCP/IP operations –make a connection (socket level routines) Draw page on screen Manage page links –make an array of links on current page screen co-ordinates Boolean visited href text string at bottom –Actions click passover scroll process special objects (, )

Jan 2001C.Watters13 Browser Functions Parse input datastream Assemble output to client screen

Jan 2001C.Watters14 Displaying the data Define canvas Get the data Parse text and act –getTag(file,tag) –if (tag= = “B”){bold_on()} etc.

Jan 2001C.Watters15 Sample Browser Function: Move_Mouse(x,y) Called each time the mouse is moved checks if mouse is over a link yes- display href string in bottom bar continuously evaluates logical and screen coordinates to accommodate scrolling

Jan 2001C.Watters16 Button Down Event(x,y) Check (x,y) to see if over a link if yes then –change Boolean attribute for link to visited –make http request –redraw screen with new data

Jan 2001C.Watters17 Action Get file from host –download file –fopen get dimensions of image –eg. GIF file bytes 6-7=width, 8-9=height draw the area

Jan 2001C.Watters18 Client Side Processing JavaScript –Program code in plain text included in the HTML doc –executes on client –Interacts with user using HTML forms in web pages Applet –Program code in java byte code sent from server –executes on the client –Typically takes over part of the current web page

Jan 2001C.Watters19 Javascript Examples Calculators Simple Calculator Shopping Cart

Jan 2001C.Watters20 Forms and Data Forms are part of HTML document Price: user enters data or selects options Data from form goes to javascript (or back to server) GST Price:

Jan 2001C.Watters21 Form and call to Javascript Execute this function in javascript of this page Send all of the data in this form to the javascript too Everytime this button is Clicked!!

Jan 2001C.Watters22 Javascript sample function GST(theForm){ var price=parseInt(theForm.price.value) var gst=price*0.07 theForm.result.value=gst } GST Calculator

Jan 2001C.Watters23 Features using Javascript Shopping carts Checking credit card or phone number patterns What-if Calculations: –car payments –Mortgage payments –Current cost of things in the shopping cart Tutorial or demonstration calculations Remember no data is sent to server!!

Jan 2001C.Watters24 Applets  Compiled java program code  Code is sent from server to the browser  Executes on the browsers machine  CANNOT write to client’s machine!!

Jan 2001C.Watters25 Applet call example Demo Go here to get code Give it this much of the Current web page

Jan 2001C.Watters26 Applet example Car search applet

Jan 2001C.Watters27 Saving Data on a Client Applets can not write to the client’s disk Cookies (generated by javascript (or cgi)) can be saved on client – text strings –“owned” by the current html document document.cookie=“cookie1= name=carolyn; balance=2000;expires= ;path=/”

Jan 2001C.Watters28 Applet restrictions Cannot write to local disk Only establish socket connection to owner host (i.e., where applet was downloaded from) Why are these sensible??? Why are these ridiculous???

Jan 2001C.Watters29 Fat vs Thin Clients Fat clients have a lot of the processing done on the client (applets, applications, etc) Thin clients have very little processing mostly just display Fat: offload server, save bandwidth Thin: no software upgrades, cheap clients

Jan 2001C.Watters30 Recap HTTP protocol is used for browser-server communication HTTP is stateless (here and now!) Javascript can be used to do some of the work on the client, including saving data between sessions as cookies Applets can be used to execute a program from the server on the client, but cannot save data on the client