admin管理员组文章数量:1195123
I was wondering if it's possible to write Firefox extension using .Net Framework? Had anybody such experience in writing Firefox extensions using C# programming language? Any good sites or guidelines would be very helpful.
FFPlugin .jpg
Here is an example of what I need. Extension to enter phone number and to send SMS Message. I draw it in Paint, so I'm sorry for having no artistic touch.
I was wondering if it's possible to write Firefox extension using .Net Framework? Had anybody such experience in writing Firefox extensions using C# programming language? Any good sites or guidelines would be very helpful.
FFPlugin http://img81.imageshack.us/img81/3049/ffplugin.jpg
Here is an example of what I need. Extension to enter phone number and to send SMS Message. I draw it in Paint, so I'm sorry for having no artistic touch.
Share Improve this question edited Nov 5, 2009 at 20:35 nemke asked Nov 5, 2009 at 14:38 nemkenemke 2,4583 gold badges37 silver badges57 bronze badges 04 Answers
Reset to default 8Assuming you're asking about writing an extension (and not a plugin), the best place to get started is with the info at the Mozilla Dev Center.
Konamiman is correct: extensions are mostly XUL (an XML grammar) and Javascript, packaged into a ZIP file with the extension .xpi
. The various links from the page I linked should answer basic questions, like the one you posted above:
https://developer.mozilla.org/en/Building_an_Extension
https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions
Firefox extensions are written primarily in Javascript. See here: http://www.rietta.com/firefox/Tutorial/backend.html. So unless you can find a way to convert C# code/.NET Framework objects to Javascript, you are out of luck.
As has been observed by other respondents, Firefox extensions are primarily written in Javascript: but you're in luck, because Script# is a free tool that enables developers to author C# source code and subsequently 'compile' it into Javascript.
I'm not sure how you'd do for C#, but you can use XPCOM to call native code libraries: that's how the Glasser extension, for instance, is able to use the Windows-specific Aero effects.
IBM hosts a very good XPCOM tutorial at DeveloperWorks.
本文标签: netHow to write FireFox extension with Visual Studio using C programming languageStack Overflow
版权声明:本文标题:.net - How to write FireFox extension with Visual Studio using C# programming language? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738498324a2090115.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论