Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing.

Slides:



Advertisements
Similar presentations
Java Script Session1 INTRODUCTION.
Advertisements

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
DT211/3 Internet Development Application Internet Development Application.
HTTP Presented By: Holly Mortinson Amy Drout Kyle Balmer & Matt Conklin.
Introduction to Web Interface Technology (CSE2030)
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.
Definitions, Definitions, Definitions Lead to Understanding.
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 TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
OV Copyright © 1998 Ziff-Davis Education, a division of Ziff-Davis Inc. All rights reserved. The Internet World-wide network of computers connected.
A Closer Look at HTTP HyperText Transfer Protocol.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
Introduction to Internet Programming (Web Based Application)
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
Microsoft Internet Explorer and the Internet Using Microsoft Explorer 5.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
HTML ~ Web Design.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
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 Welcome to CSC 301 Web Programming Charles Frank.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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 Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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.
Jan.2001C.Watters1 World Wide Web Basics. Jan.2001C.Watters2 What is an internet anyway? 2 or more networks that can communicate.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
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.
Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing.
Distributed systems: an architectural view. Once upon a time… The Mainframe Dumb Terminal Dumb Terminal Dumb Terminal Dumb Terminal Dumb Terminal Dumb.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Fall 2000C.Watters1 World Wide Web and E-Commerce Servers & Server Side Processing.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Fall 2000C.Watters1 World Wide Web and E-Commerce Internet and WWW Basics.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Invitation to Computer Science 6 th Edition Chapter 10 The Tower of Babel.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Introduction to the World Wide Web & Internet CIS 101.
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.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
CX Introduction to Web Programming
Tonga Institute of Higher Education IT 141: Information Systems
WWW and HTTP King Fahd University of Petroleum & Minerals
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Brief Look InTo JavaScript
Presentation transcript:

Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing

Fall 2000C.Watters2 Objectives  Examine computing activities that can be done at the client (browser side)  Consider fat vs thin clients  Take a look at portals

Fall 2000C.Watters3 Client-Server Model (review)

Fall 2000C.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

Fall 2000C.Watters5 HTTP is Stateless!!!! Each operation or transaction makes a new connection each operation is unaware of any other connection each click is a new connection So how do they do those shopping carts??

Fall 2000C.Watters6 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

Fall 2000C.Watters7 HTTP Request Header Example GET /catalog/ip/ip.htm HTTP 1.0 Accept: text/plain Accept: text/html Referer: User-Agent: Mozilla/2.0

Fall 2000C.Watters8 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

Fall 2000C.Watters9 Client Side Processing HTML pages Javascript Applets Cookies

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

Fall 2000C.Watters11 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

Fall 2000C.Watters12 Javascript Examples Calculators Simple Calculator Shopping Cart

Fall 2000C.Watters13 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:

Fall 2000C.Watters14 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!!

Fall 2000C.Watters15 Javascript sample function GST(theForm){ var price=parseInt(theForm.price.value) var gst=price*0.07 theForm.result.value=gst } GST Calculator

Fall 2000C.Watters16 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!!

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

Fall 2000C.Watters18 Applet call example Demo Go here to get code Give it this much of the Current web page

Fall 2000C.Watters19 Applet example Car search applet

Fall 2000C.Watters20 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 samples document.cookie=“cookie1= name=carolyn; balance=2000;expires= ;path=/”

Fall 2000C.Watters21 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

Fall 2000C.Watters22 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

Fall 2000C.Watters23 Portals  A gateway site whose goal is to be a major starting site for  users as an anchor site.  General portals  Yahoo, Excite, Netscape,  Lycos, CNET, Microsoft Network, and America Online's AOL.com.  Niche portals  Garden.com (for gardeners),  Fool.com (for investors),  SearchNT.com (for Windows NTadministrators).

Fall 2000C.Watters24 Public Portal

Fall 2000C.Watters25 Corporate Portal

Fall 2000C.Watters26 Corporate Portal

Fall 2000C.Watters27 Government Portal

Fall 2000C.Watters28

Fall 2000C.Watters29 Push vs Pull Pull - client requests web page/service - server complies and sends data - (send me some data) Push - server initiates data flow to client - client accepts data - (here take this data)

Fall 2000C.Watters30 Recap on Portals  Very good way to organize data for communities of users  Can be personalized  Can be used with push for alerting  Can be used for collaborative tasks