Try and create the XMLHttpRequest object.
尝试创建XMLHttpRequest对象。
We simply send the XMLHttpRequest, as usual.
只需照常发送XMLHttpRequest。
Create an instance of the XMLHttpRequest object.
创建一个XMLHttpRequest对象实例。
Instantiate the XMLHttpRequest (XHR) object variable.
实例化XMLHttpRequest (xhr)对象变量。
Creating the actual XMLHttpRequest object is fairly easy.
创建实际的XMLHttpRequest对象相当轻松。
To send this, you need to use the XMLHTTPRequest object.
为了发送它,你必须使用XMLHTTPRequest对象。
The wrapper function sends an XMLHttpRequest to the server.
包装器函数将一个XMLHttpRequest发送到服务器。
Listing 5 shows the code that creates the XMLHttpRequest object.
清单5显示了创建XMLHttpRequest对象所需的代码。
Most modern browsers support the XMLHttpRequest object natively.
大多数现代浏览器都支持XMLHttpRequest对象。
The script is invoked by an XMLHttpRequest call on the browser.
该脚本通过浏览器上的XMLHttpRequest调用激活。
Rhino doesn?t support the XMLHTTPRequest object, but don't worry.
Rhino 并不支持XMLHTTPRequest对象,但是这个问题您不必担心。
Most of this code is typical Ajax code, using the XMLHttpRequest object.
这段代码大部分是使用XMLHttpRequest对象的典型Ajax代码。
Finally, you stop the XMLHttpRequest object by assigning it to null.
最后,通过把XMLHttpRequest对象赋值为null,停止这个对象。
Hold open an XMLHttpRequest connection until a response is received.
保持打开XMLHttpRequest连接,直到收到响应。
For example, you can use XMLHttpRequest to call a remote Web service.
比如,可以使用XMLHttpRequest调用一个远程Web服务。
Deleting XMLHttpRequest objects to avoid a memory leak in the Web browser.
删除XMLHttpRequest对象以避免Web浏览器发生内存泄漏。
That's usually how most Ajax programmers create the XMLHttpRequest object.
这也是多数Ajax程序员创建XMLHttpRequest对象的一般方式。
Listing 4 shows how to initialize the XMLHttpRequest for cross-browser support.
清单4展示了如何初始化xmlhttprequest来实现跨浏览器支持。
Later, I'll discuss techniques to handle browsers that don't support XMLHttpRequest.
稍后我将讨论处理那些不支持XMLHttpRequest的浏览器的技术。
That's exactly what's happened with XMLHttpRequest, the basic object used in Ajax apps.
XMLHttpRequest恰恰是这种情形,它是Ajax应用程序中使用的基本对象。
The XMLHttpRequest object is what's usually used, but it's definitely not the only way.
通常使用XMLHttpRequest对象,但这并不是唯一的方法。
This function USES the XMLHTTPRequest object to ask the server for the new content.
该函数使用XMLHTTPRequest对象向服务器请求新内容。
The secret revolves around a simple property of XMLHttpRequest called onreadystatechange.
秘密就在于XMLHttpRequest的一个简单属性onreadystatechange。
Unfortunately, the method to create an XMLHttpRequest differs from browser to browser.
不幸的是,不同的浏览器创建XMLHttpRequest的方法各不相同。
That code is "200" and is reported through the status property of the XMLHttpRequest object.
这个代码是“ 200 ”,它是通过XMLHttpRequest对象的status属性来报告的。
Unfortunately, there is great variance in the implementation of XMLHttpRequest across browsers.
不幸的是,XMLHttpRequest在不同的浏览器中有很多不同的实现。
Next, a connection is opened; here's the first place you see XMLHttpRequest in action again.
然后打开一个连接,这是您第一次看到使用XMLHttpRequest。
An alternative is to upload the page yourself using XmlHTTPRequest and connect to a REST service.
另一种办法是使用XmlHTTPRequest并连接到REST服务而自己上传网页。
You'll use false as a condition that means the XMLHttpRequest object hasn't been created yet.
后面将使用false作为判定条件,它表示还没有创建XMLHttpRequest对象。
The script then USES the XMLHttpRequest object to perform an HTTP operation against a server.
然后,该脚本使用XMLHttpRequest对象对服务器执行HTTP操作。
应用推荐