OCX不能在IE 9中使用 [英] OCX can't use in the IE 9

查看:172
本文介绍了OCX不能在IE 9中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE9中的OCX,我可以使用JQuery来获取OCX对象,但是IE9告诉我OCX对象不支持该方法.
代码是:if($(''#xlist'').length == 0){
var obj =''< object id ="xlist" style ="width:100%; height:100%;" codebase =''+ urlPrefix +``Content/xpmbrows.cab#version =''+ jmversion +''" classid ="CLSID:E80A2A71-0A34-4301-A65E-9593C8DC6265"></object>'' ;
$(#main").html('''');
$(''#container'').html(obj).show();
ocx = $(#xlist");
//ocx.openmodulerec(``a'',``b'');
alert("aa");
alert(ocx);
ocx.initOCX(''cn.language'',d,b,e);
IE9告诉我对象不支持属性或方法``initOCX''.

The OCX in the IE9 ,I can use JQuery to get the OCX object, but the IE9 tell me the OCX object can''t support the method.
The code is : if ($(''#xlist'').length == 0) {
var obj = ''<object id="xlist" style="width:100%;height:100%;" codebase="'' + urlPrefix + ''Content/xpmbrows.cab#version='' + jmversion + ''" classid="CLSID:E80A2A71-0A34-4301-A65E-9593C8DC6265"></object>'';
$("#main").html('''');
$(''#container'').html(obj).show();
ocx = $("#xlist");
//ocx.openmodulerec(''a'', ''b'');
alert("aa");
alert(ocx);
ocx.initOCX(''cn.language'', d, b, e);
IE9 tell me the Object doesn''t support property or method ''initOCX''.

推荐答案

(``#xlist'').length == 0) {
var obj =''< object id ="xlist" style ="width:100%; height:100%;" codebase =''+ urlPrefix +``Content/xpmbrows.cab#version =''+ jmversion +''" classid ="CLSID:E80A2A71-0A34-4301-A65E-9593C8DC6265"></object>'' ;
(''#xlist'').length == 0) {
var obj = ''<object id="xlist" style="width:100%;height:100%;" codebase="'' + urlPrefix + ''Content/xpmbrows.cab#version='' + jmversion + ''" classid="CLSID:E80A2A71-0A34-4301-A65E-9593C8DC6265"></object>'';


(#main").html('''');
("#main").html('''');


(''#容器'').html(obj).show();
ocx =
(''#container'').html(obj).show();
ocx =


这篇关于OCX不能在IE 9中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆