精品文档,仅供学习与交流,如有侵权请联系网站删除
Research on Web Applications Using Ajax New Technologies
Abstract—Ajax is really several technologies, each flourishing in its own right, coming together in
powerful new ways, which consists of HTML, JavaScript. technology, DHTML, and DOM, is an
outstanding approach that helps to transform clunky Web interfaces into interactive Ajax
applications. After the definition to Ajax, how to make asynchronous requests with JavaScript and
Ajax was introduced. At the end, advanced requests and responses in Ajax were put forward.
Keywords-component; Ajax; JavaScript;
XMLHttpRequest; Web Applications
I. INTRODUCTION
Ajax is shorthand for Asynchronous JavaScript and XML (and DHTML, and so on). The phrase
was coined by Jesse James Garrett of Adaptive Path and is, according to Jesse, not meant to be an
acronym. However, Ajax is far more than just a fad; it's a powerful approach to building Web sites
and it's not nearly as hard to learn as an entire new language.
Figure 1. The traditional model for web applications (left) compared to the Ajax model (right)
Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming
together in powerful new ways. Ajax incorporates:
. standards-based presentation using XHTML and CSS;
. dynamic display and interaction using the Document Object Model;
. data interchange and manipulation using XML and XSLT;
. asynchronous data retrieval using XMLHttpRequest;
. JavaScript binding everything together.
The classic web application model works like this:
Most user actions in the interface trigger an HTTP request back to a web server. The server does
some processing — retrieving data, crunching numbers, talking to various legacy systems — and
then returns an HTML page to the client. It’s a model adapted from the Web’s original use as
a hypertext medium, but as fans of the Elements of User Experience know, what makes the Web
good for hypertext doesn’t necessarily make it good for software applications.
This approach makes a lot of technical sense, but it doesn’t make for a great user experience.
While the server is doing its thing, what’s the user doing? That’s right, waiting. And at every step
in a task, the user waits some more. Obviously, we wouldn’t make users wait around in designing
【精品文档】第 1 页