Subj : Re: Including chrome js in component js To : netscape.public.mozilla.jseng From : Robert Ginda Date : Wed May 21 2003 05:29 pm The subscript loader component can be used to load a js file from script. The interface is declared here: http://lxr.mozilla.org/mozilla/source/js/src/xpconnect/idl/mozIJSSubScriptLoader.idl And there is some sample usage here: http://lxr.mozilla.org/mozilla/source/extensions/venkman/resources/content/venkman-commands.js#1182 Rob. Ryan Gammon wrote: > Hello folks, > > I'm trying to use jslib (http://jslib.mozdev.org). Normally, I could > include jslib via xul. Unfortunatly, this isn't going to work for a pure > component (it doesn't have an xul file associated with it). > > Is there any sort of loader component, or an exec/source/include > directive that I could use from javascript that will include the jslib > .js files from the chrome? > > Thanks! > > Ryan > .