Active Web Technology
description
Transcript of Active Web Technology
![Page 2: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/2.jpg)
user view
• what changes?– media stream, presentation, content
• by whom?– automatic, site author, user– other users - feedthrough
• how often?– pace of change: days, months, seconds
![Page 3: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/3.jpg)
computation
where does it happenclient
• applets, JavaScript, Shockwave, DHTML
server• CGI scripts, active server pages, servlets, etc,
other machine• authoring machine, database server, proxy
people• socio-techncal solutions
![Page 4: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/4.jpg)
security
• for computation– code and data at same place!
• problem– data - needs to be secure– web-server - least secure machine– client machine even worse
… and networks!
![Page 5: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/5.jpg)
architectural design
• what happens where
• affects:– complexity of implementation and maintenance– feedback
• seeing results of one’s own actions
– feedthrough• seeing effects of other people’s actions
![Page 6: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/6.jpg)
client side dynamism
animation
Java and JavaScript
DHTML
![Page 7: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/7.jpg)
animated gif or movie
•
• pros: simple
• cons: predetermined sequence
also … streaming audio/video
![Page 8: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/8.jpg)
Java applet or JavaScript running locally
• pros: rapid feedback
• cons: only local, no feedthrough
aa
user's machine
(i)page loads
once
(ii)user interacts
locally
script/ J avarunning in client
web server
<H1>
The Act i ve Web
</ H1>
<p>
The web i s
changi ng,
i t s pages ar e
no l onger st at i c
![Page 9: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/9.jpg)
server side dynamism
CGI scripts
searches
![Page 10: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/10.jpg)
searches
• create indices off-line
• fast lookup when needed
see http://www.hcibook.com/
aa
web serveruser's machine
(ii)search results
rturned
(i)user fills
field in form
web page withtext field forsearchwords
I NDEX
CD- ROM 90 600 602CERN 156Cf A 524- 8CGI scr i pt s 603check boxes 129chess 44chunki ng 28- 9, 45
CGI scriptlooks upwords inindex
index filepre-computed
![Page 11: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/11.jpg)
database access
client-side - JDBC
server side - CGI etc.
![Page 12: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/12.jpg)
Java applet accesses database using JDBC
• pros: interactive DB access
• cons: bandwidth, security
webserver
user's machine
JD BCaccessesdatabase
J ava applet
![Page 13: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/13.jpg)
CGI script accesses database
• pros: up-to-date, use existing DB
• cons: not proxy/index friendly
aa
web serveruser's machine
(ii) CGI scriptaccesses databaseusing SQL/ J DBC
<H1>
The Act i ve Web
</ H1>
<p>
The web i s
changi ng,
i t s pages ar e
no l onger st at i c
generatedpages
(i) requestto server
(iii)server returns
generatedpages
CGIscript
![Page 14: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/14.jpg)
socio-technical solutions
off-line generation
people in the process
![Page 15: Active Web Technology](https://reader036.fdocuments.net/reader036/viewer/2022083006/56814000550346895dab3559/html5/thumbnails/15.jpg)
batch pre-generation of web pages
• pros: indexable, secure
• cons: slower turnaround
aa
third machineweb serveruser's machine
(ii) pages copiedto web server
via ftp
<H1>
The Act i ve Web
</ H1>
<p>
The web i s
changi ng,
i t s pages ar e
no l onger st at i c
generatedpages
(iii)server returns
generatedpages
(i) pages generatedoff-line from
database
<H1>The Act i ve Web</ H1><p>The web i schangi ng,i t s pages ar eno l onger st at i c