IE7下ajax之open Method New的说明

2016-02-19 12:27 1 1 收藏

get新技能是需要付出行动的,即使看得再多也还是要动手试一试。今天图老师小编跟大家分享的是IE7下ajax之open Method New的说明,一起来学习了解下吧!

【 tulaoshi.com - Web开发 】

open Method Assigns method, destination URL, and other optional attributes of a pending request.
Syntax
XMLHttpRequest.open(sMethod, sUrl [, bAsync] [, sUser] [, sPassword])[/pre]
Parameters
sMethodRequired. String that specifies the HTTP method used to open the connection: such as GET, POST, or HEAD. This parameter is not case-sensitive.sUrlRequired. String that specifies either the absolute or a relative URL of the XML data or server-side XML Web services.bAsyncOptional. 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. sUserOptional. 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.sPasswordOptional. 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.
The following HTTP verbs and World Wide Web Distributed Authoring and Versioning (WebDAV) methods are supported:
GET POST HEAD PUT DELETE MOVE PROPFIND PROPPATCH MKCOL COPY LOCK UNLOCK OPTIONSMicrosoft 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.

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.
Applies To
XMLHttpRequest
See Also
abort, onreadystatechange

来源:https://www.tulaoshi.com/n/20160219/1600949.html

延伸阅读
标签: Web开发
一、CSS HACK 以下两种方法几乎能解决现今所有HACK. 1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) style #wrapper { width: 100px!important; /* IE7+FF */ width: 80px; /* IE6 */ } /style 2, IE6/IE77对FireFox *+html 与 *html 是IE特有的标签, firefox 暂不支...
标签: Web开发
本人专业是做UI的,写CSS已经有好几年了,目前刚刚在博客发布关于CSS的文章,欢迎有问题的朋友在有问必答论坛提问,我一定尽力解答。 1 针对firefox ie6 ie7的css样式 现在大部分都是用!important来hack,对于ie6和firefox测试可以正常显示,但是ie7对!important可以正确解释,会导致页面没按要求显示!找到一个针对IE7不错的hack方式就是使...
标签: Web开发
上文:IE7的web标准设计 IE历来被web标准的拥护者所诟病,而当FireFox横空出世以后,更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升,微软终于推出了IE7。但IE7是否真的能够力挽狂澜,是否真的能够得到用户的信任,是否真的能够得到网页设计者的认可呢? 且看《IE7的web标准之道》系列文章,和你一起见证IE7的...
标签: 电脑入门
随着浏览器的不断升级,IE7几乎是各位菜鸟、大家上网时的首选浏览器,有关它的常规使用技巧,相信各位早已是耳熟能详了。在网上尽情冲浪时,IE7难免会遭遇恶意,那么如何清理插件,让ie7恢复"简洁"呢? IE 7相比IE 6在安全性方面着实有了很大的提高,但一不小心,还是会被莫名其妙地装上一些插件,这些插件会随着IE的运行而被加载,占用...
标签: Web开发
js用来区别IE与其他浏览器及IE6-8之间的方法。 1、document.all 2、!!window.ActiveXObject; 使用方法如下: if (document.all){ alert(IE浏览器); }else{ alert(非IE浏览器); } if (!!window.ActiveXObject){ alert(IE浏览器); }else{ alert(非IE浏览器); } 下面是区别IE6、IE7、IE8之间的方法: var isIE=!!window.ActiveXObject; v...

经验教程

676

收藏

91
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部