LynxGrr
07-02-2004, 12:44 PM
Hello!
Just a general question this. On one of my current personal projects (a Dungeons and Dragons Charachter Generator) Im using a large array embedded within a function at present. When the function is called the array is being built each and every time its needed (or im guessing thats the case). If i were to seperate out the array building section of the code, and put it into a seperate js file which is called when the page is loaded, would this array be available to other js files? If not, how would I make it available?
Any help is appreciated.
Just a general question this. On one of my current personal projects (a Dungeons and Dragons Charachter Generator) Im using a large array embedded within a function at present. When the function is called the array is being built each and every time its needed (or im guessing thats the case). If i were to seperate out the array building section of the code, and put it into a seperate js file which is called when the page is loaded, would this array be available to other js files? If not, how would I make it available?
Any help is appreciated.