Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15871

Re: Simple array reference question

From Tuxedo <tuxedo@mailinator.com>
Newsgroups comp.lang.javascript
Subject Re: Simple array reference question
Date 2012-09-12 15:10 +0200
Organization albasani.net
Message-ID <k2q1k3$e7e$1@news.albasani.net> (permalink)
References <k2pn0l$n7v$1@news.albasani.net> <c0320514-716c-4955-8300-dae91763293f@googlegroups.com>

Show all headers | View raw


marat.rheingold@gmail.com wrote:

> Use named access like
> alert(window[param]);
> 
> Details: your arrays defined in scope of window. so you can access to them
> not only by variable name but as window property by their names

Many thanks for this detail.

Tuxedo

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simple array reference question Tuxedo <tuxedo@mailinator.com> - 2012-09-12 12:09 +0200
  Re: Simple array reference question SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-09-12 12:37 +0200
    Re: Simple array reference question Tuxedo <tuxedo@mailinator.com> - 2012-09-12 13:08 +0200
      Re: Simple array reference question Stefan Weiss <krewecherl@gmail.com> - 2012-09-12 16:03 +0200
        Re: Simple array reference question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 16:42 +0200
  Re: Simple array reference question marat.rheingold@gmail.com - 2012-09-12 05:34 -0700
    Re: Simple array reference question Tuxedo <tuxedo@mailinator.com> - 2012-09-12 15:10 +0200
    Re: Simple array reference question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 15:36 +0200
      Re: Simple array reference question Tuxedo <tuxedo@mailinator.com> - 2012-09-12 20:59 +0200

csiph-web