Introduction to AJAX

What is AJAX? AJAX = Asynchronous JavaScript and XML. AJAX stands for “Asynchronous JavaScript and XML”. It isn’t a single, nor a new technology. In fact, it is a group of existing technologies (i.e. HTML, CSS, JavaScript, XML, etc.) which come together to build modern web applications.

With AJAX, a client (i.e. browser) communicates with a web server and asks for data. Then, it processes the server’s response and make changes to the page without fully reloading it. AJAX is about updating parts of a web page, without reloading the whole page.

AJAX is a technique for creating fast and dynamic web pages. 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.

AJAX is an acronym for Asynchronous JavaScript and XML. AJAX is not a new programming language, but simply a new technique for creating better, faster, and more interactive web applications. 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.

How AJAX Works.

How AJAX Works.

AJAX is based on internet standards, and uses a combination of:

  • XMLHttpRequest object (to exchange data asynchronously with a server)
  • JavaScript/DOM (to display/interact with the information)
  • CSS (to style the data)
  • XML (often used as the format for transferring data)

AJAX applications are browser- and platform-independent! Google Suggest: AJAX was made popular in 2005 by Google, with Google Suggest. Google Suggest is using AJAX to create a very dynamic web interface: When you start typing in Google’s search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.

In PHP tutorial, we will demonstrate how AJAX can update parts of a web page, without reloading the whole page. The server script will be written in PHP. AJAX PHP Example

Facebook Comments

Post a Comment

Your email address will not be published. Required fields are marked *

© Franz East 2009 - 2018. | Powered by Coffee + Cigarete & Site Hosted By IDwebhost.