HomeIf both can be called "glamurnym" something in the contemporary design of interfaces, it is a web. After all, the last time you heard that someone admired interface is not available on the Internet? (Ok, except iPod.) All the latest and innovative work on the Web.
However, the web developers can not do anything to envy from their peers, which desktop-prilozheniya. You have all the strength and speed of response, which seem inaccessible to the web. The same simplicity, which resulted in the rapid spread of a global network now a gap between the user interface, which we can provide, and interaction with the user desktop applications.
What is AjaxAjax is not a technology. In fact, the number of successful technologies in a decentralized manner, collected in a strong new direction. Ajax combines :
- standardized presentation using XHTML and CSS;
- dynamic display and interaction with Document Object Model;
- sharing and management of data through XML and XSLT;
- asynchronous data using XMLHttpRequest;
Figure 1 : Comparison of the traditional model web (left) with the model Ajax (right).
In this approach, many technical sense, but it is not good interaction with the user. The server does its work, which is the user? Correct, waiting. And with each user to step forward again and again.
Obviously, if we have created a web from scratch, it would not force the user to wait all the time. If the page is loaded, why should the user interaction with a halt every time program needs something from the server? Indeed, why do you see the app connects to the server?
What is the difference between AjaxAnnex Ajax preclude interaction type start-stop-start-stop by the introduction of Ajax as the intermediate layer between the user and the server. It may seem that adding a new level in the annex can only slow down the reaction, but actually the opposite.
Figure 2 : Comparison of the traditional Web interaction diagrams (top) and asynchronous applications Ajax (bottom).
Who uses AjaxHuge investments in the Ajax approach makes Google. All the major products announced last year Orkut, Gmail, the latest beta version of Google Groups, Google Suggest, and Google Maps - Ajax applications. (For technical details of Ajax read the excellent research Gmail, Google Suggest and Google Maps.) The rest remained behind : many favorite all properties service Flickr rely on Ajax and retrieval A9.com from Amazon use a similar technique.
These projects demonstrate that Ajax is not only in theory but also in practice for real applications. This is not ordinary laboratory theory. Applications Ajax can take any size from a simple and consists of a Google Suggest to a very complex and intricate Google Maps.
Working with Ajax last few months, we Adaptive Path realized that opened only the tip of the iceberg of the wealth of interaction and the speed of response, which provide applications Ajax. This is an important development web, and its importance will only grow. And given the large number of developers who already know how to use the technology, we expect to see a growing number of organizations will follow suit and use Google competitive benefits offered by the Ajax. What's next
The main task of building applications Ajax is not technical. Indeed, the underlying technology, the Ajax conditioned, stable and well understood. Rather, the challenge for developers of these applications is to forget about their perceptions of the restrictions web and start thinking more, a wide range of capacities.
It would be interesting.
Questions and answers.
March 13, 2005 : After the publication of essays Jesse we got a huge number of letters from readers with questions about Ajax. Here Jesse answer some of the most common questions.
Question. Is Ajax inventor company Adaptive Path, or did Google? Attended the company Adaptive Path in a Ajax-prilozheny Google?
Answer. Neither Google nor Adaptive Path is not inventing Ajax. Latest Google simply the best examples of applications Ajax. Adaptive Path was not involved in the development Ajax-prilozheny Google, but we did for its other customers.
Question. Is Adaptive Path sells components Ajax is the owner or registered trademark? Where they can be downloaded?
Answer. Ajax is not something that can be downloaded. This approach, a way of understanding of the architecture of Web using certain technology. Neither approach nor the name Ajax are not owned by Adaptive Path.
Question. Is Ajax another name for XMLHttpRequest?
Answer. None. XMLHttpRequest only part of the equation Ajax. XMLHttpRequest is the technical component that makes asynchronous interaction with the server; Ajax we call the general approach described in the article, which is based not only on XMLHttpRequest, but also the CSS, DOM, and other technologies.
Question. What does it give the whole name?
Question. How asynchronous interaction with the server has been available for many years. What is novel approach Ajax?
Answer. The novelty of using these outstanding way to change the basic model of interaction in the real web. Ajax provides only now because the time required for the development of these technologies and ideas about how best to apply them.
Question. Ajax is the technological platform, or just the style of design?
Answer. Both. Ajax is a collection of technologies used together in some way.
Question. For applications which type is best suited Ajax?
Answer. While we do not really know. Because of the relative novelty of this approach, our perception of where it is best applied is still in its infancy. Sometimes the traditional model is the best web solution to a problem.
Question. Does this mean that Adaptive Path anti-Flash this?
Answer. Just no. Macromedia is a customer of Adaptive Path, and we have long supported Flash-tehnologiyu. As specialists in Ajax, we expect that for some specific tasks that Ajax will be the most passing decisions, and sometimes the best solution would be Flash. Also, we are interested in exploring ways of combining these technologies (as in the case of Flickr, which uses both).
Answer. All these questions can only be answered <can be>. Many developers are already working in this regard. We believe that there is still hard to find any restrictions Ajax, and anticipate that the course will meet with the developer many such issues.
Question. Some of the examples you use Google XML altogether. Should I use XML and / or XSLT annex Ajax?
Question. Simply Is An annex Ajax compared to the traditional Web?
Question. Can annex Ajax is a better interaction with the user than traditional Web?
Answer. Not necessarily. Ajax more flexible interface designers. However, the more power we have, the more care is needed to treat it. We must be careful to use Ajax to enhance ease of use applications, rather than worsen it.