open Method Assigns method, destination URL, and other optional attributes of a pending request.
Syntax
Syntax
XMLHttpRequest.open(sMethod, sUrl [, bAsync] [, sUser] [, sPassword])[/pre]Parameters
sMethod Required. String that specifies the HTTP method used to open the connection: such as GET, POST, or HEAD. This parameter is not case-sensitive. sUrl Required. String that specifies either the absolute or a relative URL of the XML data or server-side XML Web services. bAsync Optional. Variant that specifies true for asynchronous operation (the call returns immediately), or false otherwise. If true, assign a callback handler to the onreadystatechange property to determine when the call has completed. If not specified, the default is true. sUser Optional. Variant that specifies the name of the user for authentication. If this parameter is null ("") or missing and the site requires authentication, the component displays a logon window. sPassword Optional. Variant that specifies the password for authentication. This parameter is ignored if the user parameter is null ("") or missing.Return Value
No return value.Remarks
open was introduced in Internet Explorer 7.Applies To
The following HTTP verbs and World Wide Web Distributed Authoring and Versioning (WebDAV) methods '700')this.width='700';if(this.height>'700')this.height='700';" border=0> are supported:
Microsoft Internet Explorer caches the results of HTTP GET requests in the Temporary Internet Files (TIF) folder. In most cases, caching improves performance for data that will not change frequently. To guarantee that the results are not cached, use POST.
- GET
- POST
- HEAD
- PUT
- DELETE
- MOVE
- PROPFIND
- PROPPATCH
- MKCOL
- COPY
- LOCK
- UNLOCK
- OPTIONS
'700')this.width='700';if(this.height>'700')this.height='700';" border=0> Security Alert Cross-domain, cross-port, and mixed protocol requests are not allowed. The sUrl parameter may only specify XML data files in the same domain, using the same port and protocol method, as that from which the page is served. Although this method accepts credentials passed via parameter, those credentials are not automatically sent to the server on the first request. The sUser and sPassword parameters are not transmitted unless the server challenges the client for credentials with a 401 - Access Denied response.
After calling this method, use send to send the request and data, if any, to the server.
XMLHttpRequestSee Also
abort, onreadystatechange
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“IE7下ajax之open Method New的说明”评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。