You are here: Re: environment variable as part of a src path « HTML « IT news, forums, messages
Re: environment variable as part of a src path

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация