AJAX

 

AJAX


                I've entered the wrong E-mail address in my social media account and It showed "Wrong mail Id". But I wondered about one thing, how the particular space in the webpage shows that I have entered that wrong mail address. Usually, If you interact with the web page, the whole page will get updated. But how only the particular element gets to be updated. yeah, It's possible with AJAX.

               AJAX stands for Asynchronous JavaScript and XML. It is not a programming language but a client-side script that communicates with the server to update the particular data in the webpage without the need for the complete page refresh. It is a group or combination of interrelated applications such as XML, HTML, CSS, DOM, and JavaScript. Asynchronously without reloading the web page, only valuable data from the client-side is routed to the server-side. It makes your application interactive and faster.  AJAX is not a programming language.

        In simpler terms:

·       For requesting data from user- XMLHttpRequest.

·       For displaying - JavaScript and HTML DOM.

With AJAX, you can,

  • Update the web page without reloading the whole page.
  • Request data to the server.
  • Receive data from the server.  
  • Send data to the server in the background.

WORKING:

AJAX



Why learn AJAX?
  • Ajax uses XHTML for content, CSS for presentation, along with Document Object Model and JavaScript for dynamic content display.
  • Conventional web applications transmit information to and from the server using synchronous requests. It means you fill out a form, hit submit, and get directed to a new page with new information from the server.
  • With AJAX, when you hit submit, JavaScript will make a request to the server, interpret the results, and update the current screen. In the purest sense, the user would never know that anything was even transmitted to the server.
  • XML is commonly used as the format for receiving server data, although any format, including plain text, can be used.
  • AJAX is a web browser technology independent of web server software.
  • A user can continue to use the application while the client program requests information from the server in the background.
  • Intuitive and natural user interaction. Clicking is not required, mouse movement is a sufficient event trigger.
  • Data-driven as opposed to page-driven.
                                      AJAX makes web pages much more interactive, efficient and it eases the way of working with webpages and applications by making separate updates instead of whole page updation.