Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/03/2012, 09:26
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 11 meses
Puntos: 1012
Respuesta: Problema con AJAX dentro de una clase. No puedo acceder a las variables in

miCLase() y new miClase()

Cita:
function miClase(nId){

//Variables
this.usuarioID = nId;


//Métodos
this.getID = funcGetId;
}


function funcGetId(){
leerRespuesta();
}

function leerRespuesta(){
var clase = new miClase();
clase.usuarioID = 'hola';
console.log(clase.usuarioID);
}

window.onload = funcGetId();
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}