[Javascript] Function scope question
Chris Tifer
christ at saeweb.com
Thu Oct 2 08:10:47 CDT 2003
The only way variables shouldn't be able to be referenced in another file is if they were declared inside a function. It wouldn't matter if they were declared in another 'script block' assuming we're talking about the same type of 'script block' which is just code defined inside of <script></script>
----- Original Message -----
From: BEKIM BACAJ
To: javascript at LaTech.edu
Sent: Thursday, October 02, 2003 5:26 AM
Subject: Re: [Javascript] Function scope question
not sure about that, but the problem is that var's from one script block can't communicate with the function in another script block
even if they are written in the same (html) page
>From: Robert Pollard
>Reply-To: "[JavaScript List]"
>To: Javascript at LaTech.edu
>Subject: [Javascript] Function scope question
>Date: Wed, 1 Oct 2003 15:32:08 -0700
>
>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
------------------------------------------------------------------------------
Tired of spam? Get advanced junk mail protection with MSN 8.
------------------------------------------------------------------------------
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20031002/0ae0f117/attachment.htm>
More information about the Javascript
mailing list