--- Jesper Staun Hansen <[EMAIL PROTECTED]> wrote:

> Is it possible to have one function in one file call a function in 
> another js file?:
> 
> 
> in caller.js:
> =======
> function init() {
>     IcallYou("world");
> }
> init();
> 
> 
> in responder.js:
> =======
> function IcallYou(callWhat) {
>     dump("Hello "+callWhat+"\n");
> }
> 
> 
> 
> I remember I had trouble doing this last I did this.
>

Yes, it is possible. Just make sure each includes the other file. You can do 
this in xul with
<script/> or in JS using 
http://xulplanet.mozdev.org/references/xpcomref/nsIScriptLoader.html




      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to