AJAX Introduction
- Previous Page XML SimpleXML
- Next Page XMLHttpRequest
AJAX = Asynchronous JavaScript And XML (Asynchronous JavaScript and XML)
AJAX is Asynchronous JavaScript And XThe acronym for ML.
AJAX is not a new programming language, but a new technology that can create better, faster, and more interactive web applications.
AJAX uses JavaScript to send and receive data between web browsers and web servers.
By exchanging data with the web server in the background, rather than reloading the entire web page every time the user makes a change, AJAX technology can make web pages respond more quickly.
AJAX is based on open standards
AJAX is based on the following open standards:
- JavaScript
- XML
- HTML
- CSS
The open standards used in AJAX are well-defined and supported by all major browsers. AJAX applications are independent of browsers and platforms. (It can be said that it is a cross-platform and cross-browser technology).
AJAX is about better Internet applications
Compared to desktop applications, web applications have many advantages:
- Can have more users
- Easier to install and maintain
- Easier to develop
However, applications are not always as powerful and friendly as traditional applications.
With AJAX, Internet applications can be made more powerful (lighter, faster, and more user-friendly).
You can start using AJAX today.
There is no new knowledge to learn.
AJAX is based on open standards. These standards have been used by most developers for many years.
Most web applications can be rewritten using AJAX technology to replace traditional HTML forms.
AJAX uses XML and HTTP requests
Traditional web applications submit data to the web server (using HTML forms). After the web server has processed the data, it returns a complete new web page to the user.
Since the server returns a new web page every time the user submits input, traditional web applications often run slowly and become less user-friendly.
Through AJAX, web applications can send and retrieve data without reloading the web page. To do this, it is necessary to send HTTP requests to the server (in the background) and use JavaScript to modify only a part of the web page when the server returns data.
XML is generally used as the format for receiving server data, although any format can be used, including plain text.
You will learn how to do these in the next chapters of this tutorial.
PHP and AJAX
There is no AJAX server.
AJAX is a technology that runs in the browser. It uses asynchronous data transfer between the browser and the web server, allowing web pages to request only a small amount of information from the server, rather than the entire page.
AJAX is a web browser technology independent of web server software.
However, in this tutorial, we will focus on actual cases running on PHP servers rather than the AJAXHow It Works.
For more information on how AJAX works, please visit our AJAX Tutorial.
- Previous Page XML SimpleXML
- Next Page XMLHttpRequest