Try and create the XMLHttpRequest object.
尝试创建XMLHttpRequest对象。
Create an instance of the XMLHttpRequest object.
创建一个XMLHttpRequest对象实例。
To send this, you need to use the XMLHTTPRequest object.
为了发送它,你必须使用XMLHTTPRequest对象。
Creating the actual XMLHttpRequest object is fairly easy.
创建实际的XMLHttpRequest对象相当轻松。
Listing 5 shows the code that creates the XMLHttpRequest object.
清单5显示了创建XMLHttpRequest对象所需的代码。
Most modern browsers support the XMLHttpRequest object natively.
大多数现代浏览器都支持XMLHttpRequest对象。
Rhino doesn?t support the XMLHTTPRequest object, but don't worry.
Rhino 并不支持XMLHTTPRequest对象,但是这个问题您不必担心。
Finally, you stop the XMLHttpRequest object by assigning it to null.
最后,通过把XMLHttpRequest对象赋值为null,停止这个对象。
Most of this code is typical Ajax code, using the XMLHttpRequest object.
这段代码大部分是使用XMLHttpRequest对象的典型Ajax代码。
That's usually how most Ajax programmers create the XMLHttpRequest object.
这也是多数Ajax程序员创建XMLHttpRequest对象的一般方式。
This function USES the XMLHTTPRequest object to ask the server for the new content.
该函数使用XMLHTTPRequest对象向服务器请求新内容。
This function USES Ajax (an XMLHttpRequest object to call the servlet in Listing 5).
此函数使用了Ajax(一个XMLHttpRequest对象调用清单5内的servlet)。
The XMLHttpRequest object is what's usually used, but it's definitely not the only way.
通常使用XMLHttpRequest对象,但这并不是唯一的方法。
That code is "200" and is reported through the status property of the XMLHttpRequest object.
这个代码是“ 200 ”,它是通过XMLHttpRequest对象的status属性来报告的。
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操作。
First, you need to create a new variable and assign it to an instance of the XMLHttpRequest object.
首先需要创建一个新变量并赋给它一个XMLHttpRequest对象实例。
The suggest function uses an XMLHttpRequest object to make a request to the /xfsuggest/suggest URL.
suggest函数使用XMLHttpRequest对象请求 /xfsuggest/suggestURL。
A formalization of the de-facto standard XMLHttpRequest object, the centerpiece of Ajax communication.
事实标准XMLHttpRequest对象的正式化,它是Ajax通信的核心。
The XHR file explains the logic about initializing the XMLHttpRequest object in a browser-agnostic way.
XHR文件解释XMLHttpRequest对象的初始化逻辑。
When you made the call to the server using the XMLHttpRequest object, you registered a response handler.
使用XMLHttpRequest对象请求服务器的时候注册了一个响应处理程序。
We created a simple helper function to support using the XMLHttpRequest object to invoke services using E4X.
我们创建了一个简单的辅助函数,以支持使用XMLHttpRequest对象来调用使用E4X 的服务。
As you can see, all modern browsers are written to support the native creation of the XMLHttpRequest object.
可以看到,所有现代浏览器都支持创建XMLHttpRequest对象。
As I show in Listing 3, all the XMLHTTPRequest object provides is a callback mechanism called onreadystatechange.
正如我在清单3中展示的一样,XMLHTTPRequest对象所提供的全部内容是一个名为onreadystatechange的回调机制。
You parse the document in the onreadystatechange function of the XMLHttpRequest object used to make the Ajax call.
您解析用于进行Ajax调用的XMLHttpRequest对象的onreadystatechange函数中的文档。
The final script, server.js, USES the special XMLHttpRequest object that is now a standard feature of modern browsers.
最后一个脚本server . js使用了特殊的XMLHttpRequest对象,现在这也是现代浏览器的标准特性了。
Requests to the server are sent using an XMLHTTPRequest object, and responses are handled asynchronously as they come in.
使用XMLHTTPRequest对象向服务器发送请求,并在响应到达时对其进行异步处理。
First, the XMLHttpRequest object isn't standard, even if there is a project from the W3C to create a standard from it.
首先,XMLHttpRequest对象并非标准——即使说存在通过此对象创建标准的W3C项目。
The iframe approach was the common way to get Ajax functionality before the XMLHttpRequest object was implemented everywhere.
iframe方法是在XMLHttpRequest对象得到普遍实现之前获得Ajax功能性的常见方法。
Now you've got an error-proof piece of code that creates an XMLHttpRequest object and even lets you know if something went wrong.
现在已经得到了一段带有错误检查的XMLHttpRequest对象创建代码,还可以告诉您哪儿出了问题。
应用推荐