官术网_书友最值得收藏!

What is AJAX?

AJAX is the abbreviation for Asynchronous JavaScript and XML. This gives an almost comprehensive explanation of the technology, except that XML is not required. The term AJAX surfaced around February 2005 and was first used by Jesse James Garrett (http://www.adaptivepath.com/ideas/essays/archives/000385.php), long after the building blocks of AJAX, JavaScript and XML, were available and in wide use.

The principle idea of AJAX is in the word "Asynchronous". This feature enables rich a desktop-like user interface in the browser and enables interactive interfaces that can even replace traditional user interfaces. Communication between browser and server is done in the background. Moreover, as only the data is transferred between the browser and the server, AJAX applications are actually fast and responsive to users. The following figures display how a typical request-response application works (upper diagram), and how AJAX applications work compared to the request-response application (lower diagram).

What is AJAX?

The main component of AJAX technology is XmlHttpRequest, which is a JavaScript object, first supported by Mozilla in 2002. The concept was originally developed by Microsoft in 1999 for Internet Explorer 5.0 and it was then called XMLHTTP. The following link provides the details and history of XmlHttpRequest: http://en.wikipedia.org/wiki/XMLHttpRequest.

XmlHttpRequest is used to transfer data between client and server asynchronously. The following figure shows the AJAX sequence diagram and how XmlHttpRequest is used:

What is AJAX?

AJAX is dealt with in detail in many books such as Head Rush Ajax, a "brain friendly guide" to AJAX and also on Internet sites. Further, the assumption is that most of you already know AJAX and you are reading this book for reasons other than just learning AJAX basics.

主站蜘蛛池模板: 东乡县| 中卫市| 昌乐县| 通化市| 加查县| 安西县| 吴旗县| 越西县| 永顺县| 浮梁县| 溧水县| 阿拉善右旗| 塔河县| 丰镇市| 健康| 布拖县| 丹东市| 彭山县| 温州市| 烟台市| 旬阳县| 临高县| 武鸣县| 苏尼特右旗| 遵义县| 安平县| 南平市| 湛江市| 吉木萨尔县| 泌阳县| 东乡族自治县| 弥勒县| 康平县| 松江区| 卓尼县| 昭苏县| 台北县| 女性| 岫岩| 噶尔县| 丰镇市|