小编Vik*_*dra的帖子

Mozilla 上执行错误(未定义 activexobject)

我的源代码可以在 IE 中运行,但不能在 Mozilla 中运行。请帮我。

<script type="text/javascript">
<!--
var adOpenDynamic = 2;
var adLockOptimistic = 3;

/* Path of database.
*/
var strDbPath = "..\\SRVGdb.mdb";

/*
Here is the ConnectionString for Microsoft Access.
If you want to use SQL or other databases, you hav to change the connection string..
eg: SQL => var conn_str = "Provider=sqloledb; Data Source=itdev; Initial Catalog=pubs; User ID=sa;Password=yourpassword";
*/
var conn_str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strDbPath;

function getAdoDb(strAdoType) {
    if (window.ActiveXObject) {
        return new ActiveXObject(strAdoType);
    } …
Run Code Online (Sandbox Code Playgroud)

javascript activex mozilla

-2
推荐指数
1
解决办法
9047
查看次数

标签 统计

activex ×1

javascript ×1

mozilla ×1