Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/01/2015, 09:57
NeaFan
 
Fecha de Ingreso: diciembre-2014
Ubicación: montería
Mensajes: 33
Antigüedad: 9 años, 4 meses
Puntos: 0
Respuesta: Problema con addEventListener

Pues la situación es súper-extraña, yo tengo configurado mi navegador Firefox para que borre todo contenido en memoria local una vez cierro el mismo, puesto que realizo muchas pruebas cada vez que termino de implementar algún código; Estuve observando el código fuente desde el navegador y la referencia del javascript muestra esto:
Código Javascript:
Ver original
  1. (function () {
  2.  
  3. })();
  4.  
  5. window.onload = function () {
  6.     document.getElementById('txtNombre').addEventListener('keyup', function () {
  7.         alert('hola');
  8. //        Cargar_Persona('txtNombre');
  9.     }, false);
  10. //    document.getElementById('txtCaja').addEventListener('change', function () {
  11. //        Cargar_Caja('txtCaja', 'marco-consulta');
  12. //    }, false);
  13. //    document.getElementById('txtDebito').addEventListener('change', function () {
  14. //        Cargar_Subtotal('txtDebito', 'txtSobrecupo', 'txtDescuento', 'txtHabito');
  15. //    }, false);
  16. //    document.getElementById('txtSobrecupo').addEventListener('change', function () {
  17. //        Cargar_Precio('txtHabitacion', 'txtDebito');
  18. //    }, false);
  19. //    document.getElementById('txtDescuento').addEventListener('change', function () {
  20. //        Cargar_Precio('txtHabitacion', 'txtDebito');
  21. //    }, false);
  22. //    document.getElementById('txtRato').addEventListener('change', function () {
  23. //        Cargar_Precio('txtHabitacion', 'txtDebito');
  24. //    }, false);
  25. //    
  26. //    document.getElementById('txtHabitacion').addEventListener('change', function () {
  27. //        Cargar_Precio('txtHabitacion', 'txtDebito');
  28. //    }, false);
  29. //    document.getElementById('imgSobrecupo').addEventListener('click', function () {
  30. //        Cambiar_Sobrecupo(this, 'txtSobrecupo');
  31. //    }, false);
  32. //    document.getElementById('imgDescuento').addEventListener('click', function () {
  33. //        Cambiar_Descuento(this, 'txtDescuento');
  34. //    }, false);
  35. //    document.getElementById('imgRato').addEventListener('click', function () {
  36. //        Cambiar_Rato(this, 'txtRato');
  37. //    }, false);
  38.    
  39. };
Claro esta en busca de soluciones he desactivado una gran cantidad de codigo generado a partir de PHP. lo importante es que el documento .js contiene estas simples lineas.

«Comente provisionalmente algunas lineas, y en la primeras lineas tengo una función anónima que se auto ejecuta, provisionalmente también esta sin código pero en el existe una serie de sentencias que no es de interés para la problemática que presento.»

NO TENGO NADA EN TEMPORALES :S ¿que podrá ser?

PD: No tiene nada que ver pero por si algo uso Ubuntu 14.04 y Firefox 35.0 [... canonical 1.0]