The XHR file (xhr.js) contains two functions.
XHR文件(xhr.js)包含两个函数。
Then, submitFormData() initializes the xhr object, using its open() method (see Listing 6)
之后,submitFormData() 通过open()方法初始化xhr对象(见清单6)。
Listing 5: XHR GET request to the server.
清单5:到服务器的XHRGET请求。
Then, the parameters are added to the XHR object.
然后,将参数添加到XHR对象。
This section presents the methods of the XHR object.
本节展示XHR对象的方法。
Instantiate the XMLHttpRequest (XHR) object variable.
实例化XMLHttpRequest (xhr)对象变量。
I am new to XHR and am trying to solve a simple use case.
我是XHR的新手,我试图解决一个简单的用例。
Call the XHR method with the altered XHR invocation structure.
使用改变的XHR调用结构调用XHR方法。
Sending the XHR request to the server, and loading the response.
向服务器发送XHR请求,并载入回应。
XHR is implemented in different ways in different versions of IE.
在IE的不同版本中,以不同方式实现XHR。
If you need to pass large amounts of data back to the client, use XHR.
如果你需要向客户端返回大量数据,那么使用XHR。
Either XHR or dynamic script tag insertion can be used with this format.
XHR和动态脚本标签注入都可以使用这种格式。
Microsoft is working on providing XHR support similar to other browsers.
Microsoft正在开发与其他浏览器相似的XHR支持。
Microsoft, for example, invented the XHR object which makes AJAX possible.
比如微软发明了XMLHttpRequest对象,这也使Ajax成为可能。
The XHR API opens an independent communication channel within the browser.
XHRAPI 可在浏览器内打开一个单独的信道。
It also explains how you can use XHR in an asynchronous communication mode.
它还演示了如何以异步通信模式使用XHR。
This function tries to create an XHR object using browser-specific techniques.
这个函数会尝试使用浏览器特有的技术创建一个XHR对象。
The XHR objects are kept in an array that allocates one element for each form.
这些 XHR对象保存在一个数组内,数组为每个表单分配一个数组元素。
Also, some browsers seem to have problems reusing XHR objects for multiple requests.
此外,一些浏览器在为多重请求而重用XHR对象时可能也会存在问题。
I'll address specific implementation details about using XHR in this bank scenario later.
后面将讨论在银行场景中使用XHR的实现细节。
XHR: Browser cross-domain rules prevent the attacker from making the request in the first place.
XHR:浏览器跨域规则一开始就阻止了攻击者发出请求
Despite its name, the XHR object can transfer data in any format and is not limited to valid XML.
虽然其名称为XHR,但是XHR对象却可以传输任意格式的数据而非仅限于有效的xml格式数据。
Though primarily used for requesting data from the server, XHR can also be used to send data back.
虽然XHR主要用于从服务器获取数据,它也可以用来将数据发回。
After submitting the form data, the function returns a reference to the XHR object (see Listing 8).
在提交表单数据后,此函数返回一个对xhr对象的引用(见清单8)。
Write browser independent code for creating XMLHttpRequest (XHR) and processing XML document objects.
编写用于创建XMLHttpRequest (XHR)和处理XML文档对象的浏览器无关的代码。
From a PHP perspective, extending Ajax isn't just about rewriting the XMLHttpRequest (XHR) access code.
从PHP的角度来看,扩展Ajax功能并不仅仅是重写XMLHttpRequest (XHR)访问代码。
The XHR file explains the logic about initializing the XMLHttpRequest object in a browser-agnostic way.
XHR文件解释XMLHttpRequest对象的初始化逻辑。
Construct a standard Dojo XHR invocation structure containing the URL, arguments, and data format metadata.
构建一个含有url、参数和数据格式元数据的标准DojoXHR调用结构。
The proxy approach is the best and probably most common solution today when XHR is calling a non-origin server.
当今,在XHR调用非原始服务器时,代理方法是最好或许也是最常用的一种解决方案。
Dojo's XHR wrapper lives in Dojo Base, and it exposes methods for the major HTTP verbs (post, get, put, delete).
Dojo的XHR包装器在DojoBase内,并且提供针对几个主要http动词(post、get、put和delete)的方法。
应用推荐