IE7 the description of the Ajax open method new _ajax related

Source: Internet
Author: User
Open method assigns method, destination URL, and optional attributes of a pending request.
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 isn't 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 to asynchronous operation (the call returns immediately), or false otherwise. If true, assign a callback handler to the onReadyStateChange property to determine while 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 was ignored if the user parameter is null ("") or missing.
Return Value
No return value.
Remarks
Openwas introduced in Internet Explorer 7.
The following HTTP verbs and world Wide Web Distributed Authoring and Versioning (WebDAV) methods ' m ') this.width= ' m ' F (this.height> ' m ') this.height= ' m '; "Border=0> are supported:
    • Get
    • POST
    • Head
    • Put
    • DELETE
    • Move
    • PROPFIND
    • Proppatch
    • Mkcol
    • COPY
    • LOCK
    • UNLOCK
    • OPTIONS
Microsoft Internet Explorer caches the results of HTTP get requests in the Temporary Internet Files (TIF) folder. In most cases, the caching improves performance for data that is not change frequently. To guarantee so the results are not cached and use POST.

' this.width= '; if (this.height> ') this.height= '; "Border=0> security AlertCross-domain, Cross-port, and mixed protocol requests not are. The sURLParameter may only specify XML data files in the same domain, using the same port and protocol method, as this from which The page is served. Although this is accepts credentials passed via parameter, those credentials are not automatically sent to the server On the I request. The Suserand SpasswordParameters are not transmitted unless the server challenges the client for credentials with a 401-access Denied .
After calling this method, use Send to send the request and data, if all, to the server.
Applies To
XMLHttpRequest
Also
Abort, onreadystatechange
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.