Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

228
Vistas
why XMLHttpRequest too slow with my codes?

i code some simple form and decided to use XMLHttp Request to submit data to a php file but its seems is slow compared to using php. Is there anything i can do to make this fast. I'm getting mad at it because i have to hit the submit button like 3 times before the page moves to the next page

xmlr.open('POST', 'form/i.php');
    
    
    var fnam = document.getElementById('firstname-input').value;
   
    
    
    xmlr.onload = function () {
      if (this.status === 200) {
       
        
        function movON() {
            
 
            
          window.location.href = "features.php"
          
          
    
        }
         setTimeout(movON, 1000); 
        
        
      } else {
        console.log('error');
      }
    }
    
    xmlr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
    xmlr.send('&fxnam=' + encodeURIComponent(fnam) )
            

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda