Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2009, 11:54
PabloLPastor
 
Fecha de Ingreso: junio-2009
Ubicación: Madrid
Mensajes: 46
Antigüedad: 14 años, 11 meses
Puntos: 7
Respuesta: problema con el ambito de variable

Hola,

Prueba a hacer esto:

Código:
this.states="";
var that = this;

dentro de la funcion interna, utiliza that en lugar de this:

Código:
onComplete:function(respuesta)
			{
				var profes = eval('('+respuesta.responseText+')');
				that.states = profes;
			}

saludos