The problem may be that the alert(); is firing before functions.inc has a
chance to download (and possibly the browser is being told not to cache it).
It is working on the IIS v5 server because IE has already downloaded
functions.inc sometime previously and has it cached in the local browser
cache.
To test this, I would suggest that you move the alert() call into the
functions.inc file, or run the function onLoad or similar.
Since this is a javascript issue, I don't think any of the ASP, or Parent
Path settings are relevant to the problem.
Cheers
Ken
"Sorin" <sorin DeleteThis @kaisha-tec.com> wrote in message
news:OwFtBxndDHA.3948@TK2MSFTNGP11.phx.gbl...
: The server is Windows 2003 with IIS 6
: I have the following simple code in default.asp:
: <script language="JavaScript" src="functions.inc"></script>
: <script language="JavaScript">
: alert(strVal);
: </script>
:
: the file functions.inc contains:
: var strVal = "ABCD"
:
: When I'm trying to view the default.asp page in IE I get the error strVal
is undefined.
: If I move both files (default.asp and functions.inc) on another server
which runs Windows 2000 and IIS 5 it is working fine.
: On Windows 2003 machine I did checked the "Include parent paths" checkbox.
Also ASP is enabled.
: Any ideeas ? Thank you >> Stay informed about: script problem in IIS6