单词 | XMLHttpRequest | ||||||||||||||||
释义 | XMLHttpRequest
更多释义 收起释义 例句释义: 对象,对象的属性,对象的方法 1. Fundamental to almost all applications that call themselves Ajax based is the creation of a component known as the XMLHttpRequest object. 几乎所有称得上是基于Ajax的应用程序都会创建称为XMLHttpRequest对象的组件。 www.ibm.com 2. So you create a variable in JavaScript with var, give it a name (like "request" ), and then assign it to a new instance of XMLHttpRequest. 因此在JavaScript中用var创建一个变量,给它一个名字(如“request”),然后赋给它一个新的XMLHttpRequest实例。 www.ibm.com 3. From the point of view of the XMLHttpRequest object, the interaction occurs within the existing security configuration. 从XMLHttpRequest对象的角度来看,这种交互发生在现有的安全配置之内。 www-128.ibm.com 4. and hide all this logic in a XmlHttpRequest service, of course, and support multiple concurrent requests. 将这些逻辑抽象并隐藏在XmlHttpRequest服务中,当然要支持多个并发的请求。 www.ibm.com 5. 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对象)只能对所在的同一个域发送请求。 www.ibm.com 6. It's your job then, to go beyond a simple application and that requires a more thorough understanding of XMLHttpRequest. 因此您的工作就不能仅仅局限于简单的应用程序了,而是需要更深入理解XMLHttpRequest。 www.ibm.com 7. If your Web page was served from a. com, then you can only make Ajax (or more precisely, XMLHttpRequest) calls to a. com. 如果Web页面由a.com提供,您只能向a.com调用Ajax(更精确地说是XMLHttpRequest)。 www.ibm.com 8. It's very important to understand that there is no guarantee that XMLHttpRequests will complete in the order they were dispatched. 非常重要的是,要理解无法保证XMLHttpRequest会按照分派它们的顺序完成。 www.ibm.com 9. A simpler solution is to pass all requests from XMLHttpRequest through a proxy resource located on the same domain as the loaded page. 一个简单的解决方案是,通过位于加载的页面所在的域中的代理资源来传递所有来自XMLHttpRequest的请求。 www-128.ibm.com 10. This property, available on XMLHttpRequest, returns the server's response in the form of a DOM document. 该属性在XMLHttpRequest上可用,它以DOM文档的格式返回服务器的响应。 www.ibm.com 1. At the time of this writing, the XMLHttpRequest is supported in different ways in different browsers. 到编写本文时,不同的浏览器仍然以不同的方式支持XMLHttpRequest。 www.ibm.com 2. The XMLHttpRequest object is what's usually used, but it's definitely not the only way. 通常使用XMLHttpRequest对象,但这并不是唯一的方法。 www.ibm.com 3. Thus, it would be nice to simply change XMLHttpRequest's name to something more accurate, like HttpRequest, or perhaps simply Request. 因此,如果将XMLHttpRequest改成某种更准确的名称可能更好一些,比如HttpRequest,或者简简单单的Request。 www.ibm.com 4. However, some older versions of browsers allow making XMLHttpRequest connections to the domain specified at the document. domain property. 然而,一些版本比较老的浏览器允许与document.domain属性中指定的域建立XMLHttpRequest连接。 www.ibm.com 5. You use the XmlHttpRequest or equivalent object that modern browsers provide for this asynchronous background communication. 可以使用现在的浏览器提供的XmlHttpRequest或等效对象进行此异步后台通信。 www.ibm.com 6. For each venue, the script then makes a call back to the Foursquare proxy to get the details of the venue using XMLHttpRequest, as usual. 对于每个场所,此脚本会使用XMLHttpRequest调用Foursquare代理以便获得场景的细节。 www.ibm.com 7. An alternative is to upload the page yourself using XmlHTTPRequest and connect to a REST service. 另一种办法是使用XmlHTTPRequest并连接到REST服务而自己上传网页。 www.ibm.com 8. You parse the document in the onreadystatechange function of the XMLHttpRequest object used to make the Ajax call. 您解析用于进行Ajax调用的XMLHttpRequest对象的onreadystatechange函数中的文档。 www.ibm.com 9. You wouldn't use XMLHttpRequest this time because you want the page to be refreshed after the POST request. 这一次不能使用XMLHttpRequest,因为您需要在发出POST请求后刷新页面。 www.ibm.com 10. To accomplish this, you can register a callback function with the XMLHttpRequest and then dispatch the XMLHttpRequest asynchronously. 为了实现这个要求,可以在XMLHttpRequest上注册一个回调函数,然后异步地分派XMLHttpRequest。 www.ibm.com 1. Dojo also provides APIs for making asynchronous XMLHttpRequest calls for fetching data from the server without refreshing the page. Dojo还提供了用于进行异步XMLHttpRequest调用的API,以在不刷新页面的情况下从服务器获取数据。 www.ibm.com 2. That code is "200" and is reported through the status property of the XMLHttpRequest object. 这个代码是“200”,它是通过XMLHttpRequest对象的status属性来报告的。 www.ibm.com 3. Because of this, references to the document, window, DOMParser, and XMLHttpRequest objects cannot be resolved. 正因如此,对document、window、DOMParser和XMLHttpRequest对象的引用无法被解析。 www.ibm.com 4. Because its browser-based interface has access to the XMLHttpRequest object, the DOH can support asynchronous unit tests. 因为借助其基于浏览器的界面可以访问XMLHttpRequest对象,所以DOH可以支持异步单元测试。 www.ibm.com 5. To invoke the Web service, notice that you use the standard JavaScript API XMLHttpRequest. 要调用此Web服务,请注意使用标准的JavaScriptAPIXMLHttpRequest。 www.ibm.com 6. Next, I set a header on the XMLHttpRequest stating that the content of the request is form-encoded data. 然后,我在XMLHttpRequest上设置一个头,指明请求的内容是表单编码的数据。 www.ibm.com 7. Whenever you send sensitive data over an XmlHTTPRequest, use proper authentication and secure tunneling. 如果要通过XmlHTTPRequest发送敏感数据,需要使用适当的身份验证和安全通道。 www.ibm.com 8. datajs uses XMLHttpRequest to make network calls by default, but a different HTTP client can be used. datajs默认会使用XMLHttpRequest来进行网络调用,但还可以使用不同的HTTP客户端。 www.infoq.com 9. Unfortunately, XMLHttpRequest isn't an approved standard, and vendor support varies slightly. 遗憾的是,XMLHttpRequest并非广泛认可的标准,厂商支持的标准往往稍有不同。 www.ibm.com 10. That's exactly what's happened with XMLHttpRequest, the basic object used in Ajax apps. XMLHttpRequest恰恰是这种情形,它是Ajax应用程序中使用的基本对象。 www.ibm.com 1. With Ajax, the JavaScript code uses the XMLHttpRequest object to communicate directly with the server. 借助Ajax,JavaScript代码可使用XMLHttpRequest对象与服务器直接通信。 www.ibm.com 2. As I show in Listing 3, all the XMLHTTPRequest object provides is a callback mechanism called onreadystatechange. 正如我在清单3中展示的一样,XMLHTTPRequest对象所提供的全部内容是一个名为onreadystatechange的回调机制。 www.ibm.com 3. Use false as a condition that means the XMLHttpRequest object isn't created yet. 使用false作为判断条件,它表示还没有创建XMLHttpRequest对象。 www.ibm.com 4. The readyState property of XMLHttpRequest is a numeric value that gives the status of the request's lifecycle. XMLHttpRequest的readyState属性是一个数值,它指出请求生命周期的状态。 www.ibm.com 5. You should remember from the last article that the XMLHttpRequest object has a property called readyState. 您应该还记得在上一篇文章中XMLHttpRequest对象有一个名为readyState的属性。 www.ibm.com 6. The script then uses the XMLHttpRequest object to perform an HTTP operation against a server. 然后,该脚本使用XMLHttpRequest对象对服务器执行HTTP操作。 www-128.ibm.com 7. Later, I'll discuss techniques to handle browsers that don't support XMLHttpRequest. 稍后我将讨论处理那些不支持XMLHttpRequest的浏览器的技术。 www.ibm.com 8. The final script, server. js, uses the special XMLHttpRequest object that is now a standard feature of modern browsers. 最后一个脚本server.js使用了特殊的XMLHttpRequest对象,现在这也是现代浏览器的标准特性了。 www.ibm.com 9. From this diagram you can see exactly how the XMLHttpRequest object functions. 从此图中,您可以清楚地看到XMLHttpRequest对象是如何工作的。 www-128.ibm.com 10. The first step in this Ajax roundtrip is to create an XMLHttpRequest instance. Ajax往返过程的第一步是创建XMLHttpRequest的实例。 www.ibm.com 1. For now, the examples assume that the newXMLHttpRequest function from Listing 2 will always return an XMLHttpRequest instance. 目前,示例假设清单2的newXMLHttpRequest函数总能返回XMLHttpRequest实例。 www.ibm.com 2. Hold open an XMLHttpRequest connection until a response is received. 保持打开XMLHttpRequest连接,直到收到响应。 www.ibm.com 3. In these cases, you can use the responseXML property of the XMLHttpRequest object to retrieve the data. 在这些情况下,可以使用XMLHttpRequest对象的responseXML属性接收数据。 www.ibm.com 4. You'll use false as a condition that means the XMLHttpRequest object hasn't been created yet. 后面将使用false作为判定条件,它表示还没有创建XMLHttpRequest对象。 www.ibm.com 5. Listing 3 shows the AJAX method, which involves the use of the XMLHttpRequest call to refresh the portal page inside the portlet. 清单3显示了相应的AJAX方法,该方法将使用XMLHttpRequest调用在Portlet内刷新门户页。 www.ibm.com 6. The wrapper function sends an XMLHttpRequest to the server. 包装器函数将一个XMLHttpRequest发送到服务器。 www.ibm.com 7. We created a simple helper function to support using the XMLHttpRequest object to invoke services using E4X. 我们创建了一个简单的辅助函数,以支持使用XMLHttpRequest对象来调用使用E4X的服务。 www.ibm.com 8. When you made the call to the server using the XMLHttpRequest object, you registered a response handler. 使用XMLHttpRequest对象请求服务器的时候注册了一个响应处理程序。 www.ibm.com 9. The snippet in Listing 6 creates an instance of the XMLHttpRequest object in the ajaxPost method. 清单6中的代码片段将在ajaxPost方法中创建XMLHttpRequest对象的实例。 www.ibm.com 10. The widget uses Dojo's xhrGet function to issue an XMLHTTPRequest to the server. 这个小部件使用Dojo的xhrGet函数来向服务器发出一个XMLHTTPRequest。 www.ibm.com 1. In addition, this function deletes the previous XMLHttpRequest objects from the memory to prevent a memory leak in the Web browser. 此外,此函数从内存中删除以前的XMLHttpRequest对象,以防止Web页面中的内存泄漏。 www.ibm.com 2. To send this, you need to use the XMLHTTPRequest object. 为了发送它,你必须使用XMLHTTPRequest对象。 www.ibm.com 3. Browsers now have tabs, CSS, and XmlHttpRequest, but their HTML renderers are stuck in 1999. 浏览器现在有选项卡、CSS和XmlHttpRequest,但是它们的HTML显示引擎仍然停留在1999年的水平。 www.ibm.com 4. If this is undesirable, you can still pre-load the assets using XMLHttpRequest. 如果这是不可取的,你仍然可以预装资产使用的 www.bing.com 5. Listing 4 shows how to initialize the XMLHttpRequest for cross-browser support. 清单4展示了如何初始化XMLHttpRequest来实现跨浏览器支持。 www.ibm.com 6. Microsoft, for example, invented the XHR object which makes AJAX possible. 比如微软发明了XMLHttpRequest对象,这也使Ajax成为可能。 www.bing.com 7. XMLHttpRequest - what it is, how to perform a complete GET request, how to detect errors. 这是什么、怎样完整地执行一次GET请求、怎样检测错误。 www.nowamagic.net 8. A formalization of the de-facto standard XMLHttpRequest object, the centerpiece of Ajax communication 事实标准XMLHttpRequest对象的正式化,它是Ajax通信的核心 www.ibm.com 9. A Web Service Client that wraps XMLHttpRequest 一个包装了XMLHttpRequest的Web服务客户机 www-128.ibm.com |
||||||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。