no.

obj is the variable, you can't use it like:

var someString = 'asdf'
{obj[someString]: 'value'}

it should be:

var someString = 'asdf'
var myObject = {}
myObject[someString] = 'someValue'

It's basic JavaScript,
https://developer.mozilla.org/en/JavaScript/Guide/Values,_Variables,_and_Literals#Object_literals

On Mon, Mar 26, 2012 at 12:44 PM, hamburger <bilidi...@web.de> wrote:

> thx Arian,
> i tried the following:
> http://jsfiddle.net/H84d8/5/
>
> result:
> missing : after property id
>
> sorry I do not get it.
>
>
>

Reply via email to