简体   繁体   English

Firefox附加后端代码

[英]Firefox add-on backend code

I thinking about creating a Firefox add-on but the problem is that as i can see add-on to Firefox is build with HTML and javascript that is not nearly powerful enough for my needs. 我正在考虑创建Firefox附加组件,但是问题是,正如我所看到的那样,Firefox附加组件是使用HTML和javascript构建的,但它们的功能不足以满足我的需求。 So I was think what if i build a interface with this and then just write the rest of the program in a language that can do what I need. 所以我想如果我以此建立一个接口,然后只用一种可以满足我需要的语言编写程序的其余部分,那该怎么办? Then i just have the javascript call on methods in my main program and have it present the result. 然后,我在主程序中对方法进行了javascript调用,并显示了结果。

The program language I had to mind to use was erlang, this language is however not mainstream and if it is not possible to do it with erlang I can settle for java. 我不得不介意使用的程序语言是erlang,但是这种语言不是主流,如果不能用erlang做到,我可以使用Java。 So assuming it is possible to do how do I go about doing this? 因此,假设有可能我该怎么做呢?

They don't have an XPCOM module to talk to erlang. 他们没有与erlang对话的XPCOM模块。 If you want, you can make a DLL for windows (and etc for other OS) then use js-ctypes to talk to your DLL to talk to erlang. 如果需要,可以为Windows创建DLL(对于其他操作系统,则为DLL),然后使用js-ctypes与您的DLL进行对话以与erlang进行对话。 Do you know how to make DLL? 您知道如何制作DLL吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM