What language can Phoenix/Mozilla extensions be in?

Talk about add-ons and extension development.
Post Reply
User avatar
WinterWolf
Posts: 74
Joined: November 28th, 2002, 10:25 pm

What language can Phoenix/Mozilla extensions be in?

Post by WinterWolf »

Can I write an extension in something other than XUL? If so what other languages?
Magus
Posts: 2022
Joined: November 28th, 2002, 11:39 am
Location: that-a-way ->
Contact:

Post by Magus »

Nope, extensions are JS + XUL.
For every action there is an equal and opposite criticism.
User avatar
Stefan
Posts: 2051
Joined: November 5th, 2002, 2:46 am

Post by Stefan »

Magus wrote:Nope, extensions are JS + XUL.


Actually XUL includes JS :D
User avatar
WinterWolf
Posts: 74
Joined: November 28th, 2002, 10:25 pm

Hmmm...

Post by WinterWolf »

Hmm..., I'm thinking about learning a programming language, C++ or Java(XUL). Both are cross platform and quite popular. I can't decide!!

anyway, do I need to know how to program in Java to make themes?
Ted Mielczarek
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA
Contact:

Post by Ted Mielczarek »

Javascript is not Java. They just have similar syntax for some things. And no, you don't need to know even JS to make themes. As for C++ being cross platform, that's debatable. YOu can write MOzilla extensions in C++ or a few other languages, using XPCOM, but you'll have to use JavaScript and XUL to tie it into the application.
User avatar
WinterWolf
Posts: 74
Joined: November 28th, 2002, 10:25 pm

C++ is crossplatform

Post by WinterWolf »

Check out Qt 3.11.

"Qt is a C++ toolkit for application development. It lets application developers target all major operating systems with a single application source code.

Qt provides a platform-independent API to all central platform functionality: GUI, database access, networking, file handling, etc. The Qt library encapsulates the different APIs of different operating systems, providing the application programmer with a single, common API for all operating systems. The native C APIs are encapsulated in a set of well-designed, fully object-oriented C++ classes. " http://www.trolltech.com/products/qt/index.html

BTW: Does anyone else using a stable 0.5 Phoenix see slightly trranslucent scrollbars? It looks cool, but it only works on my 400 MGZ computer.
Magus
Posts: 2022
Joined: November 28th, 2002, 11:39 am
Location: that-a-way ->
Contact:

Post by Magus »

Qt is not very cross platform... I've never had it work well at all on Win32.
For every action there is an equal and opposite criticism.
Post Reply