Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!