Podcast
Questions and Answers
What is AJAX?
What is AJAX?
Which object is used to create an XMLHttpRequest in modern browsers?
Which object is used to create an XMLHttpRequest in modern browsers?
What method is used to send a request to a server using XMLHttpRequest?
What method is used to send a request to a server using XMLHttpRequest?
What does the responseText property of XMLHttpRequest contain?
What does the responseText property of XMLHttpRequest contain?
Signup and view all the answers
Which applications use AJAX according to the given text?
Which applications use AJAX according to the given text?
Signup and view all the answers
What happens if a classic web page (not using AJAX) needs to change its content?
What happens if a classic web page (not using AJAX) needs to change its content?
Signup and view all the answers
What triggers the onreadystatechange event handler?
What triggers the onreadystatechange event handler?
Signup and view all the answers
When is the response considered ready?
When is the response considered ready?
Signup and view all the answers
What happens if the input field in the AJAX and PHP Example is empty?
What happens if the input field in the AJAX and PHP Example is empty?
Signup and view all the answers
What does the xmlhttp.send() method do?
What does the xmlhttp.send() method do?
Signup and view all the answers
What happens when str.length == 0 in the showHint() function?
What happens when str.length == 0 in the showHint() function?
Signup and view all the answers
What parameter is added to the URL in the showHint() function?
What parameter is added to the URL in the showHint() function?
Signup and view all the answers
How many times is onreadystatechange triggered?
How many times is onreadystatechange triggered?
Signup and view all the answers
xmlhttp.onreadystatechange
is designed to be a function that will be called:
xmlhttp.onreadystatechange
is designed to be a function that will be called:
Signup and view all the answers
showHint()
function executes what operations when the input field is not empty?
showHint()
function executes what operations when the input field is not empty?
Signup and view all the answers
What does 'this.readyState == 4 && this.status == 200' represent?
What does 'this.readyState == 4 && this.status == 200' represent?
Signup and view all the answers
What is the purpose of AJAX in web development?
What is the purpose of AJAX in web development?
Signup and view all the answers
Which object is used to create an XMLHttpRequest in modern browsers?
Which object is used to create an XMLHttpRequest in modern browsers?
Signup and view all the answers
What does the 'xmlhttp.onreadystatechange' event handler represent?
What does the 'xmlhttp.onreadystatechange' event handler represent?
Signup and view all the answers
What happens if the input field in the AJAX and PHP Example is empty?
What happens if the input field in the AJAX and PHP Example is empty?
Signup and view all the answers
What is the responseText property of XMLHttpRequest used for?
What is the responseText property of XMLHttpRequest used for?
Signup and view all the answers
When should old versions of Internet Explorer (IE5 and IE6) use an ActiveX Object to create an XMLHttpRequest?
When should old versions of Internet Explorer (IE5 and IE6) use an ActiveX Object to create an XMLHttpRequest?
Signup and view all the answers
What is the purpose of the onreadystatechange event handler in the context of XMLHttpRequest?
What is the purpose of the onreadystatechange event handler in the context of XMLHttpRequest?
Signup and view all the answers
What does 'this.readyState == 4 && this.status == 200' represent in the context of XMLHttpRequest?
What does 'this.readyState == 4 && this.status == 200' represent in the context of XMLHttpRequest?
Signup and view all the answers
What happens when str.length == 0 in the showHint() function?
What happens when str.length == 0 in the showHint() function?
Signup and view all the answers
In the context of AJAX and PHP Example, what does the showHint() function do when the input field is not empty?
In the context of AJAX and PHP Example, what does the showHint() function do when the input field is not empty?
Signup and view all the answers
What triggers the onreadystatechange event handler in the context of XMLHttpRequest?
What triggers the onreadystatechange event handler in the context of XMLHttpRequest?
Signup and view all the answers
What does the xmlhttp.send() method do in the context of XMLHttpRequest?
What does the xmlhttp.send() method do in the context of XMLHttpRequest?
Signup and view all the answers
What are three important properties of the XMLHttpRequest object that determine if the response is ready?
What are three important properties of the XMLHttpRequest object that determine if the response is ready?
Signup and view all the answers
When is the response considered ready in the context of XMLHttpRequest?
When is the response considered ready in the context of XMLHttpRequest?
Signup and view all the answers
What happens if a classic web page (not using AJAX) needs to change its content?
What happens if a classic web page (not using AJAX) needs to change its content?
Signup and view all the answers