Listing 5: XHR GET request to the server.
清单5:到服务器的XHRGET请求。
The XHR file (xhr.js) contains two functions.
XHR文件(xhr.js)包含两个函数。
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)对象变量。
Set the xhr callback function. xhr.onreadystatechange()
设置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。
Microsoft is working on providing XHR support similar to other browsers.
Microsoft正在开发与其他浏览器相似的XHR支持。
The XHR API opens an independent communication channel within the browser.
XHRAPI 可在浏览器内打开一个单独的信道。
Microsoft, for example, invented the XHR object which makes AJAX possible.
比如微软发明了XMLHttpRequest对象,这也使Ajax成为可能。
It also explains how you can use XHR in an asynchronous communication mode.
它还演示了如何以异步通信模式使用XHR。
The XHR objects are kept in an array that allocates one element for each form.
这些 XHR对象保存在一个数组内,数组为每个表单分配一个数组元素。
This function tries to create an XHR object using browser-specific techniques.
这个函数会尝试使用浏览器特有的技术创建一个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的实现细节。
Then, submitFormData() initializes the xhr object, using its open() method (see Listing 6)
之后,submitFormData() 通过open()方法初始化xhr对象(见清单6)。
XHR: Browser cross-domain rules prevent the attacker from making the request in the first place.
XHR:浏览器跨域规则一开始就阻止了攻击者发出请求
Core contains a wide variety of GUI widgets and the IO transport for XHR requests to the server.
核心部分包含了各种各样的GUI组件和io传输,后者用于将XHR请求发送给服务器。
You'll find common themes when working with XHR using a library. At a minimum, the wrappers will
当您使用一个库处理XHR 时,能发现一些常见主题。
Despite its name, the XHR object can transfer data in any format and is not limited to valid XML.
虽然其名称为XHR,但是XHR对象却可以传输任意格式的数据而非仅限于有效的xml格式数据。
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调用非原始服务器时,代理方法是最好或许也是最常用的一种解决方案。
After the initialization of the XHR object, the rpc.tag file generates an Ajax callback named processResponse .
完成XHR对象的初始化后,rpc. tag文件生成一个名为processresponse的Ajax回调。
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)的方法。
应用推荐