[Project_owners] JavaScript includes ... ?

Pete Collins pete at mozdevgroup.com
Wed Mar 16 22:44:53 EST 2005



Todd Ross wrote:

> Howdy,
>
> Is there a way to include one JavaScript file inside of another?  CSS 
> allows you to use the @import directive ... is there a JavaScript 
> equivalent?

Sure ...

jsLib include ()


Eg:
  jslib.init(this);
  include(chrome://mypackage/content/myjsFile.js");

Install:
  http://jslib.mozdev.org/installation.html

Docs:
  http://jslib.mozdev.org/doc_index.html

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions 




More information about the Project_owners mailing list