AJAX - Why AJAX ?


Why AJAX ?

Ajax makes the application to be:

  • Like a Desktop:
    • Easy drag and drop.
    • In-place customizations.
  • Responsive:
    • Permits partial parts to be updated in a page.
    • Present quick feedback about an operation that is in progress and allows the user to decide on continuation or modifications.
  • Usable:
    • Very less waits.
    • Less clicks and no page refresh.
    • Good user experience on the whole.

Issues faced by websites

  • Delayed response with "click-wait-refresh" methodology.
  • Deficiency in UI Accessibility.
  • Lagging with user-friendliness.


Fig1. Web Server Activities

Data Processing in Web Server


Fig2. Data Processing in Web Server


Fig3. Handling HTTP Traffic

Synchronous Web Response

  • Here the end user of the web application holds on till the requested web page load initially or after a click.


Fig4. Synchronous Request


Fig5. Excess Process Time Taken in Synchronous Request

Asynchronous Web Response

  • Here the end user of the web application continues with his other works on the current page, after initiating a process in his web page, and never holds on till the requested web page load initially or after a click. This is possible with the use of ajax.

Traditional and Ajax Web Model


Fig6. Traditional and Ajax Web Model

Web Page Requests


Fig7. Web Page Requests