Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/01/2011, 09:59
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 17 años, 1 mes
Puntos: 845
Respuesta: Problema con objeto en IE

En addEvent esta el culpable, attachEvent no funciona como addEventListener, no te bindea el scope, dentro de la funcion this hace referencia a window, una forma rapida de solucionarlo seria algo asi:

Código Javascript:
Ver original
  1. ...
  2. if(obj.attachEvent){                                   
  3.    obj.attachEvent('on'+tipo, function() { toDo.call(obj, window.event); }, false);                
  4. }
  5. ...

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

Última edición por masterpuppet; 29/01/2011 a las 10:06 Razón: corrección typo