Listing 5 shows the code that creates the XMLHttpRequest object.
清单5显示了创建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,停止这个对象。
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对象,但这并不是唯一的方法。
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对象创建代码,还可以告诉您哪儿出了问题。
However, you can start to get the basic idea of how these applications work and a basic understanding of the XMLHttpRequest object.
但可以首先从这些应用程序如何工作的基本概念开始,对XMLHttpRequest对象有基本的了解。
As a result, your Ajax code (and specifically, the XMLHttpRequest object) can only make requests to the same domain on which it's running.
因此,Ajax代码(具体来说就是XMLHttpRequest对象)只能对所在的同一个域发送请求。
The JSP defines one form (see Listing 5) that's used to pass service requests to the server using the XMLHttpRequest object discussed earlier.
JSP将定义一个表单(参见清单5),该表单用于使用先前讨论的XMLHttpRequest对象向服务器传递服务请求。
The x in Ajax is from the XMLHttpRequest object, which lets the browser communicate with the server in the background while displaying a page.
AJAX里的X是指XMLHttpRequest对象,它令浏览器能够在显示页面的同时,在后台和服务器沟通。
The checkRequest() function will throw an exception if the XMLHttpRequest object has not been created or if the request has already been sent.
如果还没有创建XMLHttpRequest对象,或者已经发送了请求,那么checkRequest()函数将抛出一个异常。
In other words, most people think XML is a core part of Ajax because they assume that the XMLHttpRequest object actually USES XML all the time.
换句话说,多数人之所以认为xml是ajax的核心组成部分,仅仅是因为他们想当然地以为XMLHttpRequest对象在任何时候都使用XML。
In fact, if you have Ajax code running that USES a toolkit, try to rewrite it using just the XMLHttpRequest object and its properties and methods.
事实上,如果您有使用工具箱的Ajax代码,可以尝试使用XMLHttpRequest对象及其属性和方法重新改写。
If the data happens to be XML, the XMLHttpRequest object will automatically parse that data using the browser's built in XML processing mechanisms.
如果返回的数据碰巧是XML,则XMLHttpRequest对象将自动使用浏览器中内置的XML处理机制来解析该数据。
应用推荐