top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

AJAX Tutorial - Basic About Ajax Language

+1 vote
448 views

How AJAX works ?

AJAX communicates with the server using XMLHttpRequest object. Let's try to understand the flow of ajax or how ajax works by the image displayed below.

As you can see in the above example, XMLHttpRequest object plays a important role.

  1. User sends a request from the UI and a javascript call goes to XMLHttpRequest object.
  2. HTTP Request is sent to the server by XMLHttpRequest object.
  3. Server interacts with the database using JSP, PHP, Servlet, ASP.net etc.
  4. Data is retrieved.
  5. Server sends XML data or JSON data to the XMLHttpRequest callback function.
  6. HTML and CSS data is displayed on the browser.

 

posted Feb 27, 2016 by anonymous

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button


Related Articles

What is Ajax ?

AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script.

AJAX is about updating parts of a web page, without reloading the whole page.

Ajax is a group of interrelated Web development techniques used on the client-side to create asynchronous Web applications.

AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.

Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.

Examples of applications using AJAX: Google Maps, Gmail, Youtube, and Facebook tabs.

With AJAX when submit is pressed, 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

AJAX is based on the following open standards:

1)Browser-based presentation using HTML and Cascading Style Sheets (CSS)
2)Data stored in XML format and fetched from the server
3)Behind-the-scenes data fetches using XMLHttpRequest objects in the browser
4)JavaScript to make everything happen

Video Tutorial For Ajax?

https://www.youtube.com/watch?v=fvVG5QOOn44

READ MORE
...