关于com组件的容器的问题,我都晕了
在html中,使用javascript脚本创建的对象的容器是什么?
有没有可能在对象中得到IHtmlDocument2接口?
还是说有什么其他高级方法我不知道?
例如:var obj = new ActiveXObject("Msxml2.XMLHTTP.4.0");
obj.open(.....)
我看到微软的这个xmlhttprequest可以打开相对路径?怎么实现的?
以下部分为xmlhttprequest的open方法
oXMLHttpRequest.open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword);
Parameters
bstrMethod
The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND. For IXMLHTTPRequest, this parameter is not case-sensitive.
bstrUrl
The requested URL. This can be either an absolute URL, such as "http://Myserver/Mypath/Myfile.asp", or a relative URL, such as "../MyPath/MyFile.asp".