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


Groups > comp.lang.javascript > #37215

Re: Create a string dynamically to reference a property of an object?

From "R.Wieser" <address@not.available>
Newsgroups comp.lang.javascript
Subject Re: Create a string dynamically to reference a property of an object?
Date 2019-09-11 09:33 +0200
Organization Aioe.org NNTP Server
Message-ID <qla7vp$1tib$1@gioia.aioe.org> (permalink)
References <aba8a905-8515-4be8-9e03-040f60d109e5@googlegroups.com> <ql8vb5$iqr$1@gioia.aioe.org> <d982f5c8-87f9-4fd7-a03e-3f18bdfcb718@googlegroups.com>

Show all headers | View raw


Julio,

> So much for not even getting the quotes right.
>
> They always come in pairs...

I realized when I got up this moring that after I had copy-pasted the 
origional line I forgot to clean up that part in my last code fragment.

But because of such a mistake you throw away /everything/ ?   Good going 
kido, good going. /s

Also, you where so focussed on chatising me that you forgot to do what you 
(I assume, but start to doubt it) came for here: Help jonas with his 
problem.   In this case showing him how to fix my suggestion so it would 
work for him.  Again, good going.  Not.

@Jonas,

As Julio has been complaining, I made a mess of the last code fragment. 
The('inBox'"+x+"') should have been just ('inBox'+x).  So:

x=1
var myVar = document.getElementById('inBox'+x).checked;


Regards,
Rudy Wieser

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


Thread

Create a string dynamically to reference a property of an object? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-10 11:41 -0700
  Re: Create a string dynamically to reference a property of an object? Julio Di Egidio <julio@diegidio.name> - 2019-09-10 12:38 -0700
    Re: Create a string dynamically to reference a property of an object? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-10 14:02 -0700
    Re: Create a string dynamically to reference a property of an object? dr.j.r.stockton@gmail.com - 2019-09-11 12:58 -0700
  Re: Create a string dynamically to reference a property of an object? "R.Wieser" <address@not.available> - 2019-09-10 21:59 +0200
    Re: Create a string dynamically to reference a property of an object? Julio Di Egidio <julio@diegidio.name> - 2019-09-10 13:04 -0700
      Re: Create a string dynamically to reference a property of an object? "R.Wieser" <address@not.available> - 2019-09-11 09:33 +0200
        Re: Create a string dynamically to reference a property of an object? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 00:52 -0700
          Re: Create a string dynamically to reference a property of an object? "R.Wieser" <address@not.available> - 2019-09-11 10:11 +0200
            Re: Create a string dynamically to reference a property of an object? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 02:09 -0700
              Re: Create a string dynamically to reference a property of an object? "R.Wieser" <address@not.available> - 2019-09-11 13:59 +0200
        Re: Create a string dynamically to reference a property of an object? Julio Di Egidio <julio@diegidio.name> - 2019-09-11 02:11 -0700
          Re: Create a string dynamically to reference a property of an object? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 03:48 -0700
          Re: Create a string dynamically to reference a property of an object? "R.Wieser" <address@not.available> - 2019-09-11 13:48 +0200

csiph-web