Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/05/2011, 10:09
Pelirr
 
Fecha de Ingreso: diciembre-2008
Mensajes: 233
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: rellenar lista a partir Collection

Hola, aunque ponga lo siguiente:
Código HTML:
lista.push({"'"+listOfTypeGate[0].id+ "'" +' : '+ "'"+listOfTypeGate[0].value+"'"});
me sigue diciendo "Se esperaba : ". Igual el problema es que no tengo que rellenar un array, es otro tipo de objeto, pero no sé cual puede ser. O tengo que rellenar el array de otra manera. He intentado tb:
Código HTML:
var select = {"'"+listOfTypeGate[0].id+ "'" +' : '+ "'"+listOfTypeGate[0].value+"'"}; 
y tb:
Código HTML:
var select = {"'"+listOfTypeGate[0].id+ "' : '"+listOfTypeGate[0].value+"'"};
pero no le gusta tampoco. ¿Se te ocurre dónde puede estar el error? De verdad que no consigo sacarlo, y es muy importante.
Muchas gracias