What is Ajax?

What is Ajax?



Ajax, or Asynchronous Javascript and XML, is used when you need to create an asynchronous request to the server, that is, run it in the background without reloading the page.

To successfully communicate on the page, you must create an XMLHttpRequest object. It acts as an intermediary between the browser and the server, which sends a request and receives data.

There are two ways to communicate with the server – GET and POST request. The first option involves accessing the document on the server, and the site URL is passed as an argument. To prevent the request from being interrupted, use the JavaScript Escape function. The second option is used when transmitting large amounts of data.

To understand whether the server has responded, you need to know the “readyState” browser property. Its values can be as follows:

  • 0 – the request is not initialized;
  • 1 – request setup is complete;
  • 2 – the request is sent;
  • 3 – the request is processed on the server;
  • 4 —the request is complete.

One example of using Ajax is Google’s autocomplete feature, which offers the user keyword options as they type in the search bar. The page does not change, but the words are updated in real time.

Contact the experts

Have a question?

Contact the experts Have a question?

I accept User agreement and I give my consent to processing of my personal data
Personal data processing agreement

The user, filling out an application on the website (hereinafter referred to as the Site), agrees to the terms of this Consent for the processing of personal data (hereinafter referred to as the Consent) in accordance with the Law of Ukraine “On the collection of personal data”. Acceptance of the offer of the Consent is the sending of an application from the Site or an order from the Operator by telephone of the Site.

The user gives his consent to the processing of his personal data with the following conditions:

1. This Consent is given to the processing of personal data both without and using automation tools.
2. Consent applies to the following information: name, phone, email.

3. Consent to the processing of personal data is given in order to provide the User with an answer to the application, further conclude and fulfill obligations under the contracts, provide customer support, inform about services that, in the opinion of the Operator, may be of interest to the User, conduct surveys and market research.

4. The User grants the Operator the right to carry out the following actions (operations) with personal data: collection, recording, systematization, accumulation, storage, clarification (updating, changing), use, depersonalization, blocking, deletion and destruction, transfer to third parties, with the consent of the subject of personal data and compliance with measures to protect personal data from unauthorized access.

5. Personal data is processed by the Operator until all necessary procedures are completed. Also, processing can be stopped at the request of the User by e-mail:

6. The User confirms that by giving Consent, he acts freely, by his will and in his interest.

7. This Consent is valid indefinitely until the termination of the processing of personal data for the reasons specified in clause 5 of this document.

Join Us

Send CV

I accept User agreement and I give my consent to processing of my personal data
Please allow cookies to be more efficient with your site.