Can we make a HTTP POST Ajax call?
Correct Answer: Yes, set method param of open() function to POST
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Ajax Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ajax MCQ Questions
For the code fragment function x(a,b,e,d,c){ c=new XMLHttpRequest; c.open(e||'get',a); c.onload=b; c.onerror=error; c.send(d||null) } Choose the option that best describes the parameter d
Which method is used for cross domain AJAX calls?
Choose the best answer to describe ‘Deferred objects’
Which is not 'document' object methods?
function loadDoc() { varxhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 3 &&this.status == 200) { console.log(this.responseText); } }; xhttp.open('GET', ;'cd_catalog.xml', true); xhttp.send(); }
What's wrong with the following code? function check_for_request_done() { if (xhr.readyState == 4) { clearInterval(timer); do_something_with_result(xhr); } } var xhr = new XMLHttpRequest(); xhr.open("GET", "/resource", true); xhr.send(); var timer = setInterval(check_for_request_done, 100);
If the server is expecting JSON-formatted information in the request, what code will turn the JavaScript object dataToSend into data you can send to the server (consider modern browsers only, including IE8 and above)?
What is the value of the .status attribute of the completed XMLHttpRequest object if the Ajax request needed to follow a server-side redirect before successfully finding the intended resource?
How will the response be parsed if responseType is set to "document" and the request has been made asynchronously?
AJAX applications are browser- and platform-dependent!