有如下div
<div style="display:none">
<object classid="clsid:D9347033-9612-11D1-9D75-00C04FCC8CDC" id="printControl" CODEBASE="VB做的条形码控件"></object>
</div>脚本代码如下
function IsActiveXEnabled()
{
try
{
var p;
p=document.getElementById("printControl"); //支持firfox ,以前方法不适用p = document.all.printControl;
p.Refresh();
return true;
}
catch(exp)
{
if (confirm("<display:message key='printBarJourneyOrder.confirm' config='language.modules.customservice'/>"))
if (confirm("请确认安装打印控件,以及允许使用ActiveX控件,否则将不能打印条形码行程单是否显示帮助信息?")) ; //去掉中英文配置
window.location.href="/error/activexError.html"; //支持firfoxwindow.open("/error/activexError.html");
return false;
return true;
}
}
IsActiveXEnabled();
此控件在IE能正确显示,在firefox则不行,不知道是什么原因
<div style="display:none">
<object classid="clsid:D9347033-9612-11D1-9D75-00C04FCC8CDC" id="printControl" CODEBASE="VB做的条形码控件"></object>
</div>脚本代码如下
function IsActiveXEnabled()
{
try
{
var p;
p=document.getElementById("printControl"); //支持firfox ,以前方法不适用p = document.all.printControl;
p.Refresh();
return true;
}
catch(exp)
{
if (confirm("<display:message key='printBarJourneyOrder.confirm' config='language.modules.customservice'/>"))
if (confirm("请确认安装打印控件,以及允许使用ActiveX控件,否则将不能打印条形码行程单是否显示帮助信息?")) ; //去掉中英文配置
window.location.href="/error/activexError.html"; //支持firfoxwindow.open("/error/activexError.html");
return false;
return true;
}
}
IsActiveXEnabled();
此控件在IE能正确显示,在firefox则不行,不知道是什么原因
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货