Click to See Complete Forum and Search --> : External scripts


pauli
09-23-2003, 08:12 AM
Hi,

Is it possible to reference variables from file1.js in file2.js ??

I am asking because I want to split my slide show viewer down so I have just a list of file names in one JS file and the active code in another JS file.

I have script references to both in my HTML code, but so far I haven't managed script cross referencing :-((

Thanks

Charles
09-23-2003, 08:18 AM
The story is told of several professors in a university in the middle ages. They were arguing about the number of teeth in a horses mouth. "The number cannot be evenly divided by seven or it would offend God" and that sort of thing. One of the students went outside, found a horse and counted the teeth.

requestcode
09-23-2003, 12:29 PM
Sure you can place them in different ".js" files. I would suggest that you place the one with the files before the other in your document. When you use external ".js" files that are no different then if you had the code placed in your document.