首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法调用firebreath函数

无法调用firebreath函数
EN

Stack Overflow用户
提问于 2015-07-22 14:08:15
回答 1查看 94关注 0票数 2

我的firefox插件就是使用firebreath框架编写的。在firefox的28版本中,它工作得非常好。对于更高的版本,我只能通过firefox插件才能从我的javascript页面调用firebreath的函数。它在示例html文件中工作得很好。我还附上了我的源代码供您参考。

调用firebreath函数:

代码语言:javascript
复制
var plugin = document.getElementById('dllID');
if(plugin.valid)
{
    var ngInfo = plugin.ReturnUsers(param1, param2);
    if(ngInfo.length >0)
    {
        // do something
    }
}

Overlay.xul:

代码语言:javascript
复制
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/"?>
<overlay id="guardOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript" src="chrome://guard/content/ngContent.js"/>
    <vbox style="height:0;">
        <html:embed type="application/x-guard" id="guard" style="height:0;"/>
    </vbox>
</overlay>

在捕获异常时,它显示TypeError:plugin.ReturnUsers不是一个函数

有人知道我的问题的解决方案吗??

EN

回答 1

Stack Overflow用户

发布于 2015-07-24 01:02:05

最有可能的问题是,您最终运行的是64位版本的firefox;64位版本的firefox只运行64位版本的插件。尝试安装32位版本的firefox 28或将插件重建为64位。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31555121

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档