Correct Answer: Yes, but only when using newer browsers and HTML5 features.
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
AJAX applications are browser- and platform-dependent!
How will the response be parsed if responseType is set to "document" and the request has been made asynchronously?
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?
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'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);
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(); }
Which is not 'document' object methods?
Choose the best answer to describe ‘Deferred objects’
Which method is used for cross domain AJAX calls?
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