Q9: Describe the two methods used for getting the AJAX response data. Answer: the server response data when the data is not ‘responseText’ contains the server response data when the data XML. ‘responseXML’ provides is XML. Q10: Describe the ‘readyState’ variable. Answer: The variable of the XMLHttpRequest object contains the ‘readyState’ current state of the AJAX request. Q11: What are the possible states of the variable? ‘readyState’ Answer: 0 Request not initialized – 1 Server connection established – 2 Request Received – 3 Processing request – 4 Request finished and response is ready – Q12: How can we monitor changes to ‘readyState’? Answer: can be monitored for changes by assigning a function to ‘readyState’ the ‘onreadystatechange’ event. Q13: With the understanding of what AJAX is used for, list several popular websites that make use of AJAX. Answer: Some examples of websites that make use of AJAX are Gmail, YouTube, Google Maps, and many, many more!
Q9: Describe the two methods used for getting the AJAX response data. Answer: ‘responseText’ contains the server response data when the data is not XML. ‘responseXML’ provides the server response data when the data is XML. Q10: Describe the ‘readyState’ variable. Answer: The ‘readyState’ variable of the XMLHttpRequest object contains the current state of the AJAX request. Q11: What are the possible states of the ‘readyState’ variable? Answer: 0 – Request not initialized 1 – Server connection established 2 – Request Received 3 – Processing request 4 – Request finished and response is ready Q12: How can we monitor changes to ‘readyState’? Answer: ‘readyState’ can be monitored for changes by assigning a function to the ‘onreadystatechange’ event. Q13: With the understanding of what AJAX is used for, list several popular websites that make use of AJAX. Answer: Some examples of websites that make use of AJAX are Gmail, YouTube, Google Maps, and many, many more!
Final-summer11-studyguide.docx