Posted by Steven on 04/06/06 01:55
On 5 Apr 2006 15:33:18 -0700, "Glennn" <glenn.meredith@siemens.com>
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>
It sounds like you are trying to get code that is running in someone
else's browser to access something that is internal to your server. I
don't think this is possible. Maybe you could generate the page using
PHP and get it to replace the variable before the page is sent.
--
Steven
[Back to original message]
|