Reference methods defined in one JScript file from another JScript
- by Thomas Svensen
I am writing some server-side scripts using jscript and WSH. The scripts are getting quite long, and some common functions and variables would fit better in a general library script which I included in my various script instances.
But, I cannot find a way reference one JScript file from another. For a moment, I though reading the file contents and passing it to "eval()" could work. But, as it says on MSDN:
"Note that new variables or types defined in the eval statement are not visible to the enclosing program."
(http://msdn.microsoft.com/en-us/library/b51a45x6.aspx)
Is there any way to include/refence a JScript from another one?