Slide 22
Slide 22 text
XMLHttpRequest Level 2
Sending a photo
v
a
r x
h
r = n
e
w X
M
L
H
t
t
p
R
e
q
u
e
s
t
(
)
;
x
h
r
.
o
p
e
n
(
'
P
O
S
T
'
, '
/
g
a
l
l
e
r
y
'
)
;
x
h
r
.
u
p
l
o
a
d
.
a
d
d
E
v
e
n
t
L
i
s
t
e
n
e
r
(
'
p
r
o
g
r
e
s
s
'
, h
a
n
d
l
e
P
r
o
g
r
e
s
s
, f
a
l
s
e
)
;
x
h
r
.
a
d
d
E
v
e
n
t
L
i
s
t
e
n
e
r
(
'
l
o
a
d
'
, h
a
n
d
l
e
F
i
n
i
s
h
, f
a
l
s
e
)
;
x
h
r
.
a
d
d
E
v
e
n
t
L
i
s
t
e
n
e
r
(
'
e
r
r
o
r
'
, h
a
n
d
l
e
E
r
r
o
r
, f
a
l
s
e
)
;
x
h
r
.
a
d
d
E
v
e
n
t
L
i
s
t
e
n
e
r
(
'
a
b
o
r
t
'
, h
a
n
d
l
e
A
b
o
r
t
, f
a
l
s
e
)
;
x
h
r
.
s
e
n
d
(
f
o
r
m
D
a
t
a
)
;