Method XHR.open
Open a request before sending.
-
Syntax
undefined XHR.open(String method , String url , Boolean async , [ String username , [ String password ]])
This function will open the request prior to sending it. Calling this function will trigger theonreadystateopen handler for the XHR object if it is set. -
Parameters
String method- Th emthod for the request. Usually 'GET' or 'POST'.
String url- The URL to call.
Boolean async- If true the request is asyncronous; otherwise it is syncronous.
String username(Optional)- Username for secure connections.
String password(Optional)- Password for secure conenctions
-
Return value
No explicit return value. Default value of
undefinedis returned. -
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
This function has dependencies and will not work stand-alone. Use the download button above instead of copy/paste.
