Question

Started working on Firefox add ons, which is done with JavaScript and XUL, and I find myself sorely wanting to use Dojo or someother kind of JavaScript like library, but I can't find one that exists. So I was thinking of starting a library by porting Dojo over to a Firefox add on specific fork. Get rid off the cross browser stuff, use array comprehension and other nice stuff available in Firefox's JavaScript engine. I worry about whether or not there's enough of a userbase who'd take advantage of this, but more than that I guess I'm wondering if there's already something like this? Google finds nothing.

Was it helpful?

Solution

Mozilla Corp developed a JavaScript library for this purpose: FUEL.

it is developed by John Resig the creator of jQuery.

To know how to use jQuery inside FF extension look at this similar question

OTHER TIPS

jQuery, at least, functions perfectly well when embedded in a Firefox addon. I can't quote you names, but I've heard that several popular addons are already using jQuery.

Here's an article discussing using jQuery within XUL and some of the hoops you may need to jump through.

It is fairly common to embed jQuery in firefox extensions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top