Overview Web Technologies Computing Science Thompson Rivers University.

13
Overview Web Technologies Computing Science Thompson Rivers University

Transcript of Overview Web Technologies Computing Science Thompson Rivers University.

Page 1: Overview Web Technologies Computing Science Thompson Rivers University.

Overview

Web Technologies

Computing ScienceThompson Rivers University

Page 2: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 2

Overview

What is the Internet? What is WWW? What are HTTP and HTTPS? What is HTML?

Page 3: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 3

Overview – cont.

What is a web browser? What do you browse? How do you browse? What is web searching? What is that Web? What do we use the Web for?

Page 4: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 4

Overview – cont.

What is a web page/document? Where is the web page/document? How does a web browser render

a web page/document?

How do you write a web page/document?

Page 5: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 5

Overview – cont.

HTML (???) What is a hypertext?

What is a markup language? WWW (???) is the worldwide distributed database of web

pages/documents written in HTML and retrieved by using HTTP. Web browsers are used to access to WWW. Where are web pages/documents? Where is your web browser running? The client-server model

Page 6: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 6

Overview – cont.

The original WWW was created early 1990. Just to share documents among a group of researchers Very simple Just displaying web pages/documents, and

very simple user interaction (?)

Page 7: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 7

Overview – cont.

Nowadays WWW is a very complex system, and it includes so many interesting new technologies.

Have you ever heard of Chrome, FireFox, Safari, InternetExplorer, … Apache, IIS, web server with Node.js HTML, CSS SSE, Ajax, XML, JSON, WebSocket MySQL, MongoDB JavaScript, PHP Web frameworks Content management systems, …

Let’s check TRU website. Can you find some interesting

user interactions?

Page 8: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 8

Overview – cont.

Is TRU web A static web page? An interactive web application?

Menu, dialog boxes, user input, Event-driven, …

A dynamic web application?

Menu, DB, multimedia, events, … Can we say that the application program called TRU web is

running on the client program called Chrome? But not a standalone application

Page 9: Overview Web Technologies Computing Science Thompson Rivers University.

Overview – cont.

Overview 9

HTTPHTML-content

CSSJavaScript code

HTTP-URL

The web application model: The client-server model

Client-side web programs run on clients. Server-side web programs run on servers. HTTP between client- and server-side web programs Where are client-side web programs stored? Where are server-side web programs stored? For what do we need to use a server-side web program?

How many tiers do you see in the above diagram? 3 tier model

Client systems and client-side programs Server systems and server-side programs DBs

PHP module

HTML pages

Page 10: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 10

Overview – cont.

The web application model Client-side web [application] programs use

HTML – a markup language CSS (Cascading Style Sheets) – an addition to HTML JavaScript – a client-side scripting [programming] language DOM (Document Object Model) – a model for elements in a HTML document

Client-side web programs run on a web client called web browser, such as Chrome and FireFox.

Server-side web programs use PHP – a server-side scripting [programming] language; JavaScript; … MySQL – a database system; MongoDB; …

Server-side web programs run on a web server, such as Apache and Node.js.

Client- and server-side web programs can exchange information in the form of XML (???) using HTTP (???).

Page 11: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 11

Overview – cont.

Client-side web programs are written in HTML, CSS, and JavaScript. HTML and CSS display elements in a web document(/page/program) on a

window. -> static programs All the elements are modeled by DOM. JavaScript controls and changes the elements through DOM so that the users

can see the change on the window. -> interactive programs JavaScript is also used to exchange information with a server-side web

program. Server-side web programs are written in PHP, JavaScript(, HTML, CSS,

JavaScript), …. They are usually used to access to databases. They generate web content(, i.e., client web programs,) that will be sent to

the client. -> dynamic programs They are also used to exchange information with a client-side web program.

JavaScript and PHP are complete programming languages. A whole new programming paradigm.

Page 12: Overview Web Technologies Computing Science Thompson Rivers University.

Overview 12

Overview – cont.

HTML file Server-side script SQL, NoSQL

HTMLCSS

DOM<--->

JavaScriptjQuery

jQuery UI

PHPJavaScript

MySQLMongoDB

User interface Processing Processing Processing

Web client: ChromeFireFox

Web server: ApacheNode.js

Database servers

Page 13: Overview Web Technologies Computing Science Thompson Rivers University.

TRU-COMP2680 Introduction 13

Overview – cont.

SummaryClient Server Communication Other

HTML5CSS3(user interface)

JavaScriptDOM(processing)

PHP MySQL Polling, SSEiframeAJAXJSON, XML

SecurityCookies, sessions

Static web pages<------------------>

Interactive web applications<----------(COMP 2680)----------

>

Dynamic web applications<-------------------------------------------------------------------

>

Rich dynamic web applications<--------------------------------------------------(COMP 3540)----------------------------------------------------

>

+jQueryjQuery UIAngularJS…

Node.js…

MongoDB +WebSocketWebRTC…

ServicesFrameworksMining HTML5 APIs…

Web-based information systems<---------------------------------------------------(COMP 4620)---------------------------------------------------

>