object 未定义
aspx页面 body中
<%--<object classid="clsid:00460182-9E5E-11D5-B7C8-B8269041DD57" id="oframe" codebase="../../plugin/dsoFramer.CAB#V2,2,1,2"--%>
<%-- <object classid="clsid:00460182-9E5E-11D5-B7C8-B8269041DD58" id="oframe" style="left: 0px; top: 0px; width: 100%; height: 710px;">
<param name="_ExtentX" value="6350">
<param name="_ExtentY" value="6350">
<param name="BorderColor" value="-2147483632">
<param name="BackColor" value="-2147483643">
<param name="ForeColor" value="-2147483640">
<param name="TitlebarColor" value="-2147483635">
<param name="TitlebarTextColor" value="-2147483634">
<param name="BorderStyle" value="1">
<param name="Titlebar" value="0">
<param name="Toolbars" value="1">
<param name="Menubar" value="0">
</object>--%>
<object classid="clsid:23739A7E-2000-4D1C-88D5-D50B18F7C347" id="WebOffice" name="WebOffice" width="100%" height="100%" codebase="../../plugin/iWebOffice2000.ocx#version=7,2,6,0">
</object>
body onload时,进行赋值WebOffice.WebUrl="................";
调试打开该界面提示js错误,未找到"WebOffice"
求解;
想在界面中弄两个<object>
判断插件是否安装来调用不同的<object>对象;
body中
<script type="text/javascript">
if (document.all.oframe.object == null) {
var str = '';
str += '<object id="WebOffice" width="100%" height="100%" classid="clsid:23739A7E-2000-4D1C-88D5-D50B18F7C347" codebase="iWebOffice2000.ocx#version=7,2,6,0">';
str += '</object>';
document.write(str);
alert("加载了");
}
</script>这样处理对吗?
------解决方案--------------------
用户是否按安装了这个activex控件,并且注册。
------解决方案--------------------
if (document.all.oframe== null) {