Level 4 Level 6
Level 5

AJAX 2


10 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
xhr.open('GET', 'data/test.json', true)
The XMLHttpRequest object's open() method prepares the request. It has three parameters. 1. The HTTP method. 2. The url of the page that will handle your request. 3. A boolean indicating if it should be asynchronous.
xhr.send('search=arduino');
The send() method is the one that sends the request to the server. Extra information can be passed to the server in the parentheses.
}
When the browser has received and loaded a response from the server, the onload event will fire. This will trigger a function. The function checks the status property of the object. This is use…
accepts
A setting which takes an array of strings or a list of strings of MIME data types of the response. If you're going to accept more than one data type then use this.
dataType
A setting which takes a string which is the MIME data type of the response.
type
The type of request to make. Can be "POST" or "GET".
GET
The default value of the 'type' setting.
cache
Property which you set to 'false' to force pages to be re-requested by the browser every time.
true
The default value of the 'cache' setting.
contentType
The type of content that you're *sending* to the server.