为什么叫XMLHtt prequest?

问题描述:

我一直想知道为什么这个对象被称为这样?

I always wonder why this object is called like that?

您请求的主体不必是XML格式。此外,从服务器接收到的数据可以被提取为JSON,XML,HTML,或纯文本。 XML不玩这个目标的重要组成部分。这是一些老生常谈的?什么是曾经是第一次创建时此对象吗?

The body of your request does not need to be in XML format. Also, data received from server can be fetched as JSON, XML, HTML, or plain text. XML does not play an essential part in this object. Is this some kind of a cliché? What is this object used to be when it was first created?

XMLHtt prequest 发明了微软的Outlook Web Access的团队。这种高度创新团队previously给了我们远程脚本,这是AJAX式发展的开始。远程脚本像JSONP,但过于复杂(其使用的所有的东西Java小程序,)。我不记得是否有可能以动态地注入<脚本>在IE 4或5 元素,但是看起来这是不可能的。否则,JSONP似乎强大到足以消除对 XMLHtt prequest

XMLHttpRequest was invented by Microsoft's Outlook Web Access team. This highly innovative team previously gave us remote scripting, which was the the beginning of "AJAX" style development. Remote scripting was like JSONP, but overly complicated (it used a Java applet, of all things). I don't remember whether it was possible to dynamically inject <script> elements in IE 4 or 5, but it seems like that wasn't possible. Otherwise, JSONP seems powerful enough to eliminate the need for XMLHttpRequest.

在Outlook团队传递XML从服务器到客户端,因此ActiveX控件被命名,以反映其当时的主要用途。它被列为MSXML分析器的一部分。

The Outlook team was transferring XML from server to client, so the ActiveX control was named to reflect its primary use at the time. It was included as part of the MSXML parser.

通过火狐在游戏中得到了实施他们自己的版本的时候, XMLHtt prequest 被用来更喜欢现在的,少的XML,但Firefox中使用相同的名字呢。随着两个最大的浏览器制造商创建一个对象具有相同的名称,界面和功能,W3C的坚持与现有名称。这太糟糕了别人没有做更多的是臭的有关用词不当,并坚持我们把它的东西更准确像是刚的Htt prequest

By the time Firefox got in on the game and implemented their own version, XMLHttpRequest was being used more like it is today, and less for XML, but Firefox used the same name anyway. With the two biggest browser makers creating an object with the same name, interface, and functionality, the w3c stuck with the existing name. It's too bad someone didn't make more of a stink about the misnomer and insist we call it something more accurate like just HttpRequest.

我不知道为什么AJAX成为流行词来形容的编程风格,其中一个网页与服务器交互,而不需要一个完整的页面加载。 AJAX是一个糟糕用词不当,不是XMLHtt prequest,因为它不仅意味着XML是一个重要方面,但还没有提供任何指示服务器交互。我可以处理XML的JavaScript异步而没有与服务器进行通信。

I don't know how or why "AJAX" became the popular term to describe the programming style where a web page interacts with the server without requiring a complete page load. "AJAX" is a worse misnomer than "XMLHttpRequest" since it not only implies XML is an essential aspect, but further provides no indication of server interaction. I can process XML with JavaScript asynchronously without ever communicating with a server.