Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/05/2012, 10:38
chinanzio
 
Fecha de Ingreso: marzo-2007
Mensajes: 82
Antigüedad: 17 años, 2 meses
Puntos: 21
Respuesta: Problema para visualizar pagina en firefox

Yo no usararía XMLHttpRequest, tenes la opción de usar jQuery ?
Con eso te aseguras que funcione en todos los navegadores

Algo asi:

Código Javascript:
Ver original
  1. function mostrarClasificaciones(str) {
  2.     if (str == "") {
  3.         document.getElementById("txtHint").innerHTML = "";
  4.         return;
  5.     }
  6.    
  7.     $.ajax({
  8.         url : "getuser.php",
  9.         data : 'q=' + str,
  10.         success : function(response) {
  11.             document.getElementById("txtHint").innerHTML = response;
  12.         },
  13.         error : function(jqXHR, textStatus, errorThrown) {
  14.             // Aca el manejo del error en el servidor
  15.         }
  16.     });
  17. }
__________________
Hazle un favor a tu cerebro y juega Ajedrez online
Chess online