[Project_owners] Is it possible to..

Andrew Archer AndrewArcher at hotmail.com
Thu Feb 28 07:58:48 PST 2008


joe ertaba wrote:
> could somebody explain nsIScriptLoader 
> <http://xulplanet.mozdev.org/references/xpcomref/nsIScriptLoader.html> 
> I cant find any good source for it!
>
>
When I want to use a Js function or object in another Js file I load 
that file using this

        var scriptLoader =  
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
                                                         
.getService(Components.interfaces.mozIJSSubScriptLoader);
        
scriptLoader.loadSubScript("chrome://web-mail/content/common/DebugLog.js");


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20080228/104eb8dd/attachment.html 


More information about the Project_owners mailing list