1. Question:What is the main benefit of using Ajax? 

    Answer
    The main benefit of using Ajax are mention bellow:
    a. AJAX is a technique for creating fast and dynamic web pages.
    b.AJAX allows to update parts of a web page, without reloading the whole page.
    c. AJAX applications are browser- and platform-independent.

    1. Report
  2. 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
  3. 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
  4. Question:What are the values of readyState property? 

    Answer
    0 uninitialized
    1 loading
    2 loaded
    3 interactive
    4 complete

    1. Report
  5. 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
  6. 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
  7. Question:What is ajaxgold framework? 

    Answer

    Ajaxgold framework is a framework which leverages Ajax, a collection of technologies for building dynamic web pages on the client side. While data is read from and sent to the server by JavaScript requests, frameworks may include server-side or client-side components to process the client's requests.


    1. Report
  8. Question:What is the function of libAjax server-side framework? 

    Answer
    LibAjax is a library that allows the use of server side and client side scripting using XMLHTTPRequest (Named AJAX). LibAjax makes using Ajax even easier.
    The libAjax function are :
    1.$ajax->output()
    2.$ajax->client_request()

    1. Report
  9. 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
  10. 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
Copyright © 2024. Powered by Intellect Software Ltd