Most of this code is typical Ajax code, using the XMLHttpRequest object.
这段代码大部分是使用XMLHttpRequest对象的典型Ajax代码。
Listing 5 shows the code that creates the XMLHttpRequest object.
清单5显示了创建XMLHttpRequest对象所需的代码。
Use the XMLHttpRequest object to make a call to the server by defining a callback function that is executed automatically when the server response is received.
使用XMLHttpRequest对象对服务器进行调用,采用的方法是定义一个回调函数,当收到服务器响应时,会自动执行这个函数。
However, you can start to get the basic idea of how these applications work and a basic understanding of the XMLHttpRequest object.
但可以首先从这些应用程序如何工作的基本概念开始,对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处理机制来解析该数据。
Whether it's pre-loading image rollovers or initialing an XmlHttpRequest object for a later Ajax request or assigning event handlers, it's your code that takes time.
是否预加载图像翻转或初始化xmlhttprequest对象以用于稍后的Ajax请求,或分配事件处理程序,您的代码将花时间处理这些问题。
The final script, server.js, USES the special XMLHttpRequest object that is now a standard feature of modern browsers.
最后一个脚本server . js使用了特殊的XMLHttpRequest对象,现在这也是现代浏览器的标准特性了。
That's exactly what's happened with XMLHttpRequest, the basic object used in Ajax apps.
XMLHttpRequest恰恰是这种情形,它是Ajax应用程序中使用的基本对象。
Instantiate the XMLHttpRequest (XHR) object variable.
实例化XMLHttpRequest (xhr)对象变量。
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对象及其属性和方法重新改写。
The iframe approach was the common way to get Ajax functionality before the XMLHttpRequest object was implemented everywhere.
iframe方法是在XMLHttpRequest对象得到普遍实现之前获得Ajax功能性的常见方法。
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。
Rhino doesn?t support the XMLHTTPRequest object, but don't worry.
Rhino 并不支持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对象向服务器传递服务请求。
Requests to the server are sent using an XMLHTTPRequest object, and responses are handled asynchronously as they come in.
使用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 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对象,它令浏览器能够在显示页面的同时,在后台和服务器沟通。
That's usually how most Ajax programmers create the XMLHttpRequest object.
这也是多数Ajax程序员创建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 this article, you'll begin with the most fundamental and basic of all Ajax-related objects and programming approaches: the XMLHttpRequest object.
本文中,您将开始接触最基本和基础性的有关Ajax的全部对象和编程方法:XMLHttpRequest对象。
Most modern browsers support the XMLHttpRequest object natively.
大多数现代浏览器都支持XMLHttpRequest对象。
We created a simple helper function to support using the XMLHttpRequest object to invoke services using E4X.
我们创建了一个简单的辅助函数,以支持使用XMLHttpRequest对象来调用使用E4X 的服务。
Create an instance of the XMLHttpRequest object.
创建一个XMLHttpRequest对象实例。
To send this, you need to use the XMLHTTPRequest object.
为了发送它,你必须使用XMLHTTPRequest对象。
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对象创建代码,还可以告诉您哪儿出了问题。
When you made the call to the server using the XMLHttpRequest object, you registered a response handler.
使用XMLHttpRequest对象请求服务器的时候注册了一个响应处理程序。
Creating the actual XMLHttpRequest object is fairly easy.
创建实际的XMLHttpRequest对象相当轻松。
First, you need to create a new variable and assign it to an instance of the XMLHttpRequest object.
首先需要创建一个新变量并赋给它一个XMLHttpRequest对象实例。
This function USES the XMLHTTPRequest object to ask the server for the new content.
该函数使用XMLHTTPRequest对象向服务器请求新内容。
You'll use false as a condition that means the XMLHttpRequest object hasn't been created yet.
后面将使用false作为判定条件,它表示还没有创建XMLHttpRequest对象。
应用推荐