List some advantages and disadvantages of using Ajax.

devquora
devquora

Posted On: Feb 22, 2018

 

Ajax is a very easy concept if one has a sound knowledge of JavaScript. It uses JavaScript functions to call methods from a web service. It has certain advantages-

  • Speed- Ajax reduces the server traffic and also the time consumption on the server and client side.
  • Ajax is very responsive and fast, data can be transferred at a time.
  • XMLHttpRequest plays a significant role in Ajax. It is a special JavaScript object that calls asynchronous HTTP request to the server for transferring data.
  • One of the biggest advantages of using Ajax as forms are common elements in the web page. Ajax gives options for validation and much more.
  • One doesn’t have to completely reload the page.

There are some disadvantages attached to Ajax. They are-

  • Search engines would not be able to index Ajax applications so Ajax maybe a mistake.
  • Anyone can have access to the code of Ajax and can view source it.
  • ActiveX requests are enabled only in internet explorer and other new browsers.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ajax Interview Questions

    Explain What is Ajax?

    Ajax is considered to be a developer’s best friend because it offers several benefits to him such as updating the web..

    Ajax Interview Questions

    Differentiate between Synchronous and Asynchronous Ajax requests.

    Synchronous Ajax requests: In this, the script stops and waits for the server to reply before continuing. In web application world, one has to happen after the other, i.e. the interaction between the ..

    Ajax Interview Questions

    What are different readyState in Ajax.

    There are total 5 ready state in Ajax:Value State Description0 UNSET Client has been created. Open() not yet calle..