|
Posted by Jim Higson on 04/06/06 13:47
Glennn wrote:
> How would I reference an environment variable as part of the path to a
> javascript file?
>
> I've tried many variations similar to these in my head section, but so
> far no success.
>
> <script language="JavaScript" src="%MY_ENV_VAR%\bin\myScript.js"
> type="text/javascript"></script>
>
> <script language="JavaScript" src="$(MY_ENV_VAR)\bin\myScript.js"
> type="text/javascript"></script>
That depends - is the env var set on your server or on the client's
computer?
If the former, most scripting languages can do that, but the syntax depends
on which one you use.
If the later, you can't.
--
Jim
Navigation:
[Reply to this message]
|