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
Also
Abort, onreadystatechange