|
Posted by Jim Higson on 04/06/06 19:54
Glennn wrote:
> Hi All,
> Thanks for the responses!
>
> Actually this is not running with a server. It's part of an application
> with all code existing on one PC. It is expected that each PC running
> this application would have this env var set with a path, but that path
> will not necessarily be the same on each PC.
The browser won't give environment variables to javascript. If it did,
there'd be some pretty serious privacy issues.
> So, relative to the above replies, I suppose it would be considered as
> a client env var. The question then is can a local env var be used
> within an URL, when the source html and browser are all on the same PC.
> If not, I suppose I may be adding more restrictions on where it finds
> the .js file, but since in my situtation that .js is essentially part
> of another application, this is where I was trying to make it
> adaptable.
You'd probably have a happier time using a server like Apache. The kind of
thing you want (if I understand your problem properly) is very mature, well
documented and easy that way.
> thanks again for any further suggestions.
>
> Glenn
[Back to original message]
|