Posted by Steven on 04/06/06 15:51
On Thu, 06 Apr 2006 08:55:23 +1000, Steven <Phelum@Syd.au> wrote:
>On 5 Apr 2006 15:33:18 -0700, "Glennn" <glenn.meredith@siemens.com>
>wrote:
>><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.
My thinking here is flawed. I thought the browser would have to resolve
the %MY_ENV_VAR%. I don't think it can but it could send a request with
the variable in the URL and hope the server would resolve it. But I
still don't think it would work.
Could you just put the .js file in a special directory and include the
directory name in the URL ?
--
Steven
[Back to original message]
|