Home » Articole » News » Ajax programming

Ajax programming

posted in: News 0

Ajax10The IT architecture of Ajax (which stands for Asynchronous JavaScript and XML) is used to build Web applications and interactive dynamic websites, client–side model, using different technologies added to web browsers between 1995 and 2005.

Ajax combines JavaScript, CSS, JSON, XML, DOM and XMLHttpRequest to improve maneuverability and ease of use of Rich Internet Applications (RIA).

  • DOM and JavaScript are used to change the information presented in the browser respecting its structure;
  • XMLHttpRequest object is used for asynchronous dialogue with the Web server;
  • XML structure the information transmitted between Web server and browser.

In addition to XML, data exchange between client and server can use other formats such as JSON.

Ajax applications run on all common Web browsers: Mozilla Firefox, Internet Explorer, Konqueror, Google Chrome, Safari, Opera, etc.


In a Web application, the conventional method of dialogue between a browser and a server is as follows: at each action made ​​by the user, the browser sends a request containing a reference to a Web page, and the Web server performs calculations and sends the result as a web page to the browser. This will display the page he has just received. Each action causes the transmission and display a new page. The user must wait for the answer to perform other actions.

Using Ajax, the dialogue between the browser and the server takes place mostly as follows: a program written in the JavaScript programming language, embedded in a web page, is executed by the browser. It sends in the background the requests to the Web server, and then modifies the contents of the currently displayed page by the Web browser based on the result received from the server, thus avoiding the transmission and display of a completely new page.

The conventional method of dialog uses specific World Wide Web mechanisms, which are incorporated in all browsers and web crawlers, and does not require programming. On the contrary, the operation of Ajax programming requires JavaScript exchanges between the browser and the Web server. It also requires to program the changes to make in the Web page to receive responses, otherwise the dialogues are unknown to the user.

In Ajax, as the name suggests, requests are made asynchronously: the Web browser continues to run JavaScript program when the request is started, it does not expect the response sent by the web server and the user can continue to perform actions during that time.

Leave a Reply

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