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");


_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to