Académique Documents
Professionnel Documents
Culture Documents
I t d ti
Introduction
to
t Aj
Ajax
Jimmy Lin
The iSchool
University of Maryland
Wednesday, October 15, 2008
Web-scale problems
2.
3.
Different
ff
models off computing
4.
TheiSchool
UniversityofMaryland
Source: Wikipedia
Ajax
|
z
z
z
z
server generates
Web page as a
response to the
request
q
browser sends
request to server
browser
server-side systems
Interface
HTTP request
Web
server
backend
database
HTTP response
p
4
data is returned
in response to
the request
TheiSchool
UniversityofMaryland
Characteristics
|
TheiSchool
UniversityofMaryland
Synchronous Interactions
browser
user activity
user activity
user activity
Time
4
server-side
3
server processing
1
HTTP request
browser
5
HTTP response
server processing
server-side systems
3
TheiSchool
UniversityofMaryland
L
A
M
P
Linux
Apache
MySQL
PHP/Python/Perl
Interface
browser
server-side systems
request
Ajax
engine
interaction management
Web
server
backend
database
response
p
data
management
TheiSchool
UniversityofMaryland
browser
Re
endering Engine
Interface
HTTP request
HTML / CSS
data
other data
(e.g. images)
HTTP response
TheiSchool
UniversityofMaryland
Enter JavaScript
Re
endering Engine
Interface
browser
HTTP request
JavaScript Engine
HTML / CSS
data
other data
(e.g. images)
JavaScript
code
HTTP response
TheiSchool
UniversityofMaryland
Enter Ajax
HTTP request
XMLHttpRequest
p q
HTTP request
JavaScript Engine
Re
endering Engine
Interface
browser
HTML / CSS
data
XML
data
JavaScript
code
other data
(e.g. images)
HTTP response
TheiSchool
UniversityofMaryland
user activity
user activity
user activity
Time
server-side
server processing
server processing
TheiSchool
UniversityofMaryland
To asynchronous Interactions
browser
user activityy
client-side processing
Time
server-side
server processing
server processing
TheiSchool
UniversityofMaryland
2
2.
3.
4.
5
5.
TheiSchool
UniversityofMaryland
DOM
|
TheiSchool
UniversityofMaryland
Hype
z
Brower incompatibilities
Many different approaches and tools
For many things, lack of agreed-on best practices
Security issues
z
Learning Ajax
|
Bewildering options:
z
z
z
TheiSchool
UniversityofMaryland
10
Interfac
ce
HTTP request
Apache
MySQL
HTTP response
Hadoop cluster
MapReduce
HDFS
TheiSchool
UniversityofMaryland
11