[ 3 posts ]

Sunil

  • Username: sunil
  • Joined: Thu Oct 27, 2011 9:58 pm
  • Posts: 4
  • Offline
  • Profile

YUI in Firefox extension

Post Posted: Fri Oct 28, 2011 8:39 am
+0-
(I posted the same in Gallery Forums, which I realized is the wrong forum, hence reposting here)

Hi,
I am YUI newbie (actually also a JS and a Firefox extenion newbie) and trying to evaluate if YUI can be used inside a Firefox extension and I have the following questions :

1. Has it been done before? If yes, any pointers will be appreciated. If not, any suggestions on how to proceed.
I am thinking of using the NodeJS support as a starting point and guess YUI.Get and YUI.Log need to be written to work with Firefox Extension APIs.
2. There's a project 'nodejs-yui3' and yui3 also has some NodeJS files? Which one is most uptodate for usage within NodeJS?
3. How to build a version of YUI that works in NodeJS?
4. Any instructions on how to deploy the build files on a local web server? Can the entire contents of build directory be copied 'as is' and will work?

If these questions have been asked before and responded, my apologies.

Thanks, Sunil

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 358
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: YUI in Firefox extension

Post Posted: Mon Oct 31, 2011 8:58 am
+0-
I don't know about Firefox extensions, but I can answer for NodeJS. Use npm to install yui3 and yui3-core. Then you can do this:

var YUI = require('yui3').YUI;
YUI().use(..., function(Y) {...});

Juan Ignacio Dopazo

YUI Contributor

  • Username: jdopazo
  • Joined: Fri Oct 02, 2009 5:39 am
  • Posts: 638
  • Location: Buenos Aires, Argentina
  • Twitter: juandopazo
  • GitHub: juandopazo
  • Gists: juandopazo
  • Offline
  • Profile

Re: YUI in Firefox extension

Post Posted: Fri Nov 04, 2011 5:08 am
+0-
I haven't used YUI in Firefox extensions, but I have tested it in Chrome extensions. Chrome extensions are very similar to the ones created from the Mozilla Add-on Builder. So using the Add-on Builder and YUI should be straightforward.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum