[Javascript] Function scope question
Chris Tifer
christ at saeweb.com
Thu Oct 2 08:07:54 CDT 2003
If you included script files like you said in a different e-mail, then I
don't see any problem with what you've done. Do something very simple just
to verify.
In your first file just put:
function test(){
alert("it works")
}
In your 2nd file, put:
test()
You should see it get called.
Chris Tifer
http://micclub.net
----- Original Message -----
From: "Robert Pollard" <rpollard at apple.com>
To: <Javascript at LaTech.edu>
Sent: Wednesday, October 01, 2003 6:32 PM
Subject: [Javascript] Function scope question
> Hello all,
>
> I have 2 files that has several functions that are related. I needed 2
> of the functions in one file to be available in the other. Can you not
> have a function in 1 file and call it from another file?
>
> Thanks,
>
> Robert Pollard
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list