The component is being implemented by a JS file. e.g 1.js
My question is that, is there a way to call a function in another js file
e.g 2.js from the file 1.js?
Thanks
--
Shwetabh
objScriptLoader =
Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
objScriptLoader.loadSubScript(strURL);
will include another JS file. Note I haven't tried it in an XPCOM
component.
See
http://www.xulplanet.com/references/xpcomref/ifaces/mozIJSSubScriptLoader.html
James