1. Question:What are the parameters of open method of XMLHttpRequest object? 

    Answer
    The parameters of open method of XMLHttpRequest object are :
    method: The HTTP method used to open the connection,such as -GET,POST,PUT,HEAD,or PROPFIND
    URL: The requested URL
    asyncFlag: A boolean value indicating whether the call is asynchronous.
    userName: The user name
    password: The password

    1. Report
  2. Question:What are the functions of responseText and responseXML properties? 

    Answer

    ResponseText holds the response body as a string.Which function is read-only.

    ResponseXML holds the response body as XML.This function is also read-only.


    1. Report
  3. Question:What are the values of readyState property? 

    Answer
    0 uninitialized
    1 loading
    2 loaded
    3 interactive
    4 complete

    1. Report
  4. Question:Why status property is used? 

    Answer
    The Status property indicates the combined values of the operation and error status code. The Status property for each Field can be used to determine why the Field was not added, modified, or deleted.

    1. Report
  5. Question:What is onreadystatechange event? 

    Answer
     The onreadystatechang is an property of XMLHttpRequest object.The onreadystatechange event is triggered every time the readyState changes. It stores a function (or the name of a function) to be called automatically each time the readyState property changes

    1. Report
  6. Question:Which information is return by getResponseHeader method? 

    Answer

    The getResponseHeader method is used to get only data for a specific header, the “Last-Modified” header, like this:

    XMLHttpRequestObject.getResponseHeader(“Last-Modified”)


    1. Report
  7. Question:How can you get overcome caching with the Http framework? 

    Answer
    The Http framework supports forced caching in Firefox as well as forced non-caching in Internet Explorer. Internet Explorer caches the response from the server by default, so clicking the top Get Time button always gives us the same time. But the Http package can avoid caching (which it does by appending unique data to the end of an URL each time we call the URL). For example, when we click the second button from the top in the figure, the time is updated for each button click, even in Internet Explorer.

    1. Report