描述:
这个应该是个菜鸟问题,大家见笑了哈!
我写的网页如下:
<html>
<head>
<title>Download file from the web.</title>
<script language="javascript">
function download1()
{
var file;
file=document.form1.text1.value;
ActiveXDown.downloadSingle(file);
return;
}
</script>
</head>
<body>
<OBJECT ID="ActiveXDown"
CLASSID="CLSID:ADD73828-78F4-4EF1-8734-61590B044F87"
CODEBASE="ActiveX3.ocx#version=1,0,0,0">
</OBJECT>
<center>
<form name="form1">
<input type="text" name="text1" size="50"><p>
下载文件:<input type="button" name="down1" value="down1" />
</form>
</body>
</html>
其中的downloadSingle(file)是ActiveX3控件中的一个方法,功能是:从服务器下载一个文件。我的目的就是要在网页中调用这个downloadSingle(file)方法。
谢谢,各位指教!
解决方案1:
现在下载不了?
ActiveXDown.downloadSingle(file);
是这样调用的没错!