Re: Dynamic variable names
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Dynamic variable names

From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Wed Nov 16 2005 - 01:01:16 CET

Richard Cornford wrote:

> Matt Kruse wrote:
>> Thomas 'PointedEars' Lahn wrote:
>>>> window[strVarName]=some value;
>>> No, don't. `window' may be a reference to the Global Object
>>> in many cases, but not in all.
>>
>> Out of curiosity, which cases are you referring to?
>
> WSH and (JScript) ASP certainly don't have a global reference
> to the global object.

You got me confused. Does this mean that even

  // global context
  var _global = this;

does not work there?

PointedEars
Received on Mon Nov 21 03:30:51 2005