[Dojo-interest] dojo in Firefox Extension

Alex Russell alex at dojotoolkit.org
Thu Apr 13 16:41:08 MDT 2006


So the Flock guys are using Dojo in chrome but they wrote a custom 
hostenv (environment portability shim) for it. Their changes are 
available from their Mercurial repository.

You can construct a custom package that includes only what you want/need 
using the build system.

Regards

On Thursday 13 April 2006 3:25 pm, Fabio Serra wrote:
> Can dojo be used in Firefox Extension?
> I made some quick test. I downloaded the kitchen sink. I copied only
> dojo.js in one of my extension directory and I included dojo as
> usually <script src="js/lib/dojo/dojo.js"		
> 				type="application/x-javascript"/> from a xul file. Currently it
> seems to work (I used some dojo.dom functions), but in the javascript
> console I have errors like this:
>
> Error: document.write is not a function
> Source file: chrome://mab/content/js/lib/dojo/dojo.js
> Line: 7472
>
> Error: document.getElementsByTagName("body")[0] has no properties
> Source file: chrome://mab/content/js/lib/dojo/dojo.js
> Line: 6246
>
> Is dojo stable for using in a production environment? Do you think
> there is something I should be aware for using dojo in Mozilla/XUL?
> Is there a distribution only with the core library without widgets,
> graphics and other think we don't need in xul?
> Thanks in advance.

-- 
Alex Russell
alex at jot.com
alex at dojotoolkit.org BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://mastodon.dojotoolkit.org/pipermail/dojo-interest/attachments/20060413/957b9227/attachment.pgp


More information about the Dojo-interest mailing list