Ajax development came from the past, so that ajax technology will provide the future
Contrary to popular belief, ajax technology was not born yesterday. Yes, ajax development, as the honor of web-programming appeared relatively recently. But, firstly, too relatively, and secondly, the very idea of this technology is not just many years, but its use in practice can be counted for decades.
Everything is built on asynchronous data processing
It will not seem so strange, if you consider that the principle of ajax, it is asynchronous data processing. And this method of working with information is known to any, more or less serious developer of desktop Windows applications, where asynchrony is based on callback functions. In fact, it is these functions that are mostly used by about ninety percent of Windows applications, and Windows itself. But how are the ajax callback functions related, what is this asynchronicity anyway? It’s really quite simple. Any program is an interaction between the computer and the user. This interaction can be synchronous or asynchronous.
Here is an example to illustrate.
To visualize how they differ, imagine one person giving two tasks to another.
Watch a movie and make a brief description of the plot.
The director calls – tell him I’m in a meeting.
In the first, the action is comparable to a synchronous function, because in order to describe the plot, you must first watch the movie all the way through. The second order is more like an asynchronous function. You don’t have to wait for the call all the time, you just have to react to it properly, if it happens.
waiting for action from the user with the transfer of the results of this action to the server, their processing and reloading the page to display the result.
And display of the page with changing its individual elements in the case of user actions
It is not difficult to guess that the latter is technology ajax.