AJAX Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the purpose of ajax

A

technique that enables a page to request/submit data without reloading a page or postback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is postback

A

when data is sent from browser to page (and typically new page is needed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

instantiate an XhtmlHttpRequest object

A

var xhr = new XhtmlHttpRequest();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

using XHR, open a GET request to fetch google.com’s home page

A

xhr.open(“GET”, “http://www.google.com/”, false);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

send an xhr request with null data

A

xhr.send(null);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Check if an xhr request returns a succesfull request

A

if (xhr.status == 200)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how can you find an xhr response’s plain text

A

xhr.responseText

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how can you find an xhr status

A

xhr.statusText

How well did you know this?
1
Not at all
2
3
4
5
Perfectly