Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/10/2011, 05:18
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: No puedo setear propiedad de objeto en callback de ajax

Podrías hacer algo así:

Código Javascript:
Ver original
  1. ...
  2. init: function(){
  3.     var self = this;
  4.     $.ajax({
  5.         url: "test.php",
  6.         success:function(f){
  7.             self.flag = true;
  8.         }
  9.    });
  10. }
  11. ...

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)